A collection of scripts used to create and analysis log files.
...
exec_file.py
...
logs
โโโ exec_file
โโโ time_stamp.log
from src import create_logger
logger = create_logger()
...
You can just source
it or add the lastlog
function to your shell configure file (e.g. ~/.bashrc
or ~/.zshrc
).
# open the last log file with sublime
$ lastlog -c
# print out the specific level message to console
$ lastlog -a level=error