The logging package is cool and can have multiple backends attached to the same log. I want to have my variable level console log and log all DEBUG info to a timestamped file.
This implementation feels like it's right but it doesn't work. It can create the file but never writes anything to it. If I keep the code as-is and swap out os.Stdout it logs as expected. 😞
The logging package is cool and can have multiple backends attached to the same log. I want to have my variable level console log and log all DEBUG info to a timestamped file.
This implementation feels like it's right but it doesn't work. It can create the file but never writes anything to it. If I keep the code as-is and swap out
os.Stdoutit logs as expected. 😞