-
Notifications
You must be signed in to change notification settings - Fork 773
[feature request] output logs to stdout #651
Comments
I agree on this. Logs for dfdaemon and supernode should be output to stdout by default. It's easier for debugging and developing, and we can utilize existing tools like Also I did some refactoring on logging a while back here which aims to make initializing the logger easier and more consistent across the whole project. |
Hi @inoc603, can you open a pr for this feature? |
@yeya24 Sure. I'll open one this weekend. |
@yeya24 please see pkg/dflog/log.go#WithConsole |
I also want to ask about the status of the issue. I deployed dragonfly(version 1.0.4) in k8s, where dfclient is deployed as daemonset and supernode as deployment. I hope to see the log from
The config
please correct me if it is wrong. |
Why you need it?
Dragonfly is used in cloud native situations and its components like dfdaemon and supernode maybe run as containers.
But currently the detailed logs are stored in logs file inside the container instead of outputing to stdout. If I want to see the logs file, I have to exec into the container first. It is better to have an option to configure logs output to stdout so I can use
docker logs
orkubectl logs
to see the logs.How it could be?
Add an option or make it default to output logs to stdout
Other related information
The text was updated successfully, but these errors were encountered: