Comments (9)
I would opt for JSON structured logs that can be easily parsed by a machine. this is why in export
services we used Uber Zap: https://github.com/uber-go/zap
from edgex-go.
In addition to zap, this is a good package to rotate logs https://godoc.org/gopkg.in/natefinch/lumberjack.v2
from edgex-go.
hi all,
It seems the project has two log formats when I run multiple microservices. I am writing the scheduler microservice. The JSON format looks good. But who can tell me which one I should choose?
from edgex-go.
Hi all,
If no one can give a suggestion, I will agree with @drasko and @RTmaster to replace logger.LoggingClient
with uber's zap in my #57 issue. I find the logger.LoggingClient
can not print the real code line and define log output level like log4j.
from edgex-go.
@yanghua You need to be sure your logging solution is behind an interface. Properly speaking, logger.loggingClient IS an interface and it is used by all of the core services. You could potentially extend the loggingClient factory to instantiate your new type of logger similar to what has been done for the DBClient.
from edgex-go.
@tsconn23 I know LoggingClient
client is a interface. But I think the system/framework kernal should provide a unified (a project just need one format) and extendible (could have multiple implementations, but should not let upper modules implement itself, they just need to use the abstract API) log framework. The unified and controllable log format would bring many advantages: collect, parse, analyze and so on.
from edgex-go.
Status?
from edgex-go.
If no objections, I will close this one due too inactivity.
from edgex-go.
Closed due to inactivity.
from edgex-go.
Related Issues (20)
- Name field escape configurable HOT 2
- Notification Retention and Persistent Caps implementation
- Notifications amount is still over than MaxCap after executing the purge job
- Add LastConnected metric to device services common config
- need to improve core-data fuzzing test coverage with swagger file update
- [Core Metadata] Handle plugged devices moving from one node to another node HOT 3
- Separate Common API from each service's swagger in to common swagger HOT 1
- Can quic be used instead of http? HOT 5
- message connected twice HOT 2
- The secretstore service will deadlock, when vault uses clustered mode and the health check configured in secretstore is for Standby nodes HOT 12
- invalid query parameter, yes has to be true or false HOT 1
- Environment Variables don't work HOT 3
- 【Core Data】How to Enable Device Data Storage Service and read Data HOT 4
- [Fuzzing support-notifications] add support-notification fuzzing test and update swagger file if needed
- Support notifications should be able to communicate with authenticated EdgeX endpoints HOT 5
- When accessing the AppService menu, an error occurs: "Oops!!! registry center service is unavailable! HOT 1
- Check the auto events before adding or updating the Device
- [Core Metadata] Add "parent" field to Device objects HOT 4
- Add Core Keeper Service HOT 2
- Add bypassValidation query parameter for POST Device API
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 edgex-go.