-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream stdout/err to a file #1751
Conversation
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
Signed-off-by: ozkanonur <work@onurozkan.dev>
CLI works fine, as before the change
is that intentionally? |
it's the same on the release build of ADEX Desktop, the entries are written to the logfile, but also showed on console |
Stdout/err is directly streamed into the log file, whatever you see on the terminal is also in the log file. Specially for users who's deploying lots of mm2 on server, you can't track all the terminals up-to-bottom. So you will be able to search in files which I believe much easier. Was this different before? Didn't we already write the terminal logs into the file before? |
ADEX Desktop handles his own logs like this atm:
that is for his own logs, not from mm2 the stuff from mm2 is shown on console and written to the file, on both debug and release builds of Desktop on pure CLI, i don't use the logfile param from mm2, i simply redirect the console output to file... i have done it like this before and haven't changed anything... this works like it was before, no change, all good |
how is it meant to be? when i set logfile in mm2... should the output be duplicated on console and log file?... or should it be only in log file? atm it's on both if it's meant to be on both, then it's fine and works as designed |
When you set the |
The logging implementation on mm2 is quite complicated and chaotic I would say. And I am trying to adapt it to the common/best practices. Ofc without breaking the mm2 clients. So if you want to keep the terminal clean and write logs to the log file, I will have to add another parameter to the mm2 conf(the file you give to |
Signed-off-by: ozkanonur <work@onurozkan.dev>
With 861ce8e you will be able to keep the console empty and write the logs to the file. If you don't enable file logging and make Let me know if this does what desktop client needs @cipig |
I actually don't know what Desktop app wants. But if there is a choice it's perfect, they can decide and configure accordingly. |
I think |
…g-fixes-enhancements
Signed-off-by: ozkanonur <work@onurozkan.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the refactor! only one small comment.
Signed-off-by: ozkanonur <work@onurozkan.dev>
refactors
native_log
and implements stdout/err streaming to persistent file without dependenciesremoved dependencies from dependency tree:
ref #1749 (comment)