PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[feature] Logging to file

Open matrix14 opened this issue 10 years ago • 5 comments

Expected Behavior

In config, you can set logging on or off. And then it's logging to folder "logs", with filename "logs-$NAME-YYYY-MM-DD-HH-MM-SS".

Actual Behavior

Bot isn't logging.

Steps to Reproduce

...

Other Information

OS: all Git Commit: all

matrix14 avatar Jul 27 '16 15:07 matrix14

Would be a great feature, because you don't need to use screen and you are able to review what happened.

alexanderrock avatar Jul 27 '16 15:07 alexanderrock

When I use screen and it crashed I don't know what happend because only what I see is "screen is terminating"... And I don't have idea how to have screen output to file and posibility to attach to screen.

matrix14 avatar Jul 27 '16 16:07 matrix14

pretty simple to do this with bash:

# run bot, output to console AND log.txt file
python pokecli.py | tee log.txt

VictorChen avatar Jul 27 '16 19:07 VictorChen

pretty simple to do this with bash:

# run bot, output to console AND log.txt file
python pokecli.py | tee log.txt

Of course, but you also need run it in screen. If you run it normally it won't work. But now I have method to do that, but I think bot should have this feature.

matrix14 avatar Jul 28 '16 07:07 matrix14

A logging option would be really nice! any plans to do this?

ph3l1x avatar Jul 30 '16 07:07 ph3l1x