I have a python script. It has a
logger = SimpleLogger(level=LogLevel.DEBUG)
When I run it in console, I get the logs properly, but whenever I redirect the output to a file, nothing is found in the target.
I tried multiple ways:
- python server.py > /tmp/x.log 2>&1
- python server.py > /tmp/x.log
In both cases, the
/tmp/x.log is empty.
I also tried
nohup python server.py, but nothing has been written in