Comments (2)
Could you please provide a bit more detail on why this was closed? Specifically, I think it could help to clarify how slog
integration is not possible. From where I sit, the necessity of intercepting all logs does not preclude using slog
, and I have an internal service library implementation that does exactly this via a common logging interface, while also providing access to creating new handlers through a well-defined interface layer. What's to prevent ServiceWeaver from adopting a similar approach? If you enumerate the difficulties or concerns, it could serve as a useful starting point for a PR from someone with experience integrating the slog
package. At the very least, this issue could serve as a guideline for exactly why slog
can't be used, and could be linked from the documentation to prevent any further issues or PR requests.
Given that slog
is intended to serve as a stdlib-standard interface to structured logging, would you consider reopening this issue until the proposal lands? Maybe change the issue title to something like "Investigate integrating the proposed slog package"
from weaver.
Thanks for reporting.
Our logger API is based on the slog
api. However, our logger needs to intercept all the logs, in order to store them in the appropriate logs storage (e.g., Google Cloud Logging, local files). So we can't use the slog package directly.
from weaver.
Related Issues (20)
- Is integration with Wire possible? HOT 1
- feat: adding a Global Config Default Configuration HOT 3
- looking forward to update component interface HOT 2
- Best Practice for serving HTTP/S Traffic HOT 2
- Panic in generate when main contains os.Exit HOT 1
- https://serviceweaver.dev/examples.html broken for safari HOT 1
- The issue of errors in cross package serialization processing HOT 3
- How do I call the written component in the program in a conventional way? HOT 1
- is context.Context propagtion supported in deploy multi? HOT 3
- context propagtion HOT 1
- multi deployment totally crashs after panic HOT 1
- initialize once in multi deploy mode HOT 1
- Replicated SQLite using Pocketbase and Marmot ( jetstream )
- Multi deployment: Blocks on first replica if other replica fails to start HOT 2
- Handling DB cleanup correctly HOT 5
- [Question] Weaver generate error in go/type.(*Checker) HOT 2
- Run alongside gRPC (will not HTTP2)
- Version mismatch with weaver-kube HOT 4
- Weaver generate process is not finished HOT 3
- Duplicate Method Executions in weavertest.RPC Mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weaver.