You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks again for Lumberjack. Been using it for years now in Caddy!
We have some users (including myself, heh) who have incorrect permissions on their log folder/files. This leads to errors like write error: error getting log file info in the logs, but the actual log message is lost to oblivion. 😅
Since Lumberjack hides the underlying io.Writer, I can't figure out a way to wrap the Write() method and, if there's an error, dump the log message to stderr as a fallback.
Would this be a feature you could support?
It would be very helpful if we didn't lose log messages on an external issue like permissions.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi Matt! This is a tricky one. This sounds like something that should be addressed for v3, which uses a constructor method specifically to do some sanity checks on startup.
Sounds good to me. It's not urgent. Over the years we've had a number of questions about this, so I've learned it's not an isolated problem for sysadmins to have the wrong permissions configured. 😅
Hi Nate,
Thanks again for Lumberjack. Been using it for years now in Caddy!
We have some users (including myself, heh) who have incorrect permissions on their log folder/files. This leads to errors like
write error: error getting log file info
in the logs, but the actual log message is lost to oblivion. 😅Since Lumberjack hides the underlying
io.Writer
, I can't figure out a way to wrap theWrite()
method and, if there's an error, dump the log message to stderr as a fallback.Would this be a feature you could support?
It would be very helpful if we didn't lose log messages on an external issue like permissions.
Thanks!
The text was updated successfully, but these errors were encountered: