graypy icon indicating copy to clipboard operation
graypy copied to clipboard

Output the log to a File

Open ericsouza opened this issue 4 years ago • 1 comments

Hey, is there a way to output the log to a file? I'm using a logstash sidecar in my pod that reads the file in gelf format

ericsouza avatar Jun 23 '21 12:06 ericsouza

Did you check out standard Python logging features?

https://stackoverflow.com/questions/6386698/how-to-write-to-a-file-using-the-logging-python-module

alercelik avatar Apr 11 '22 06:04 alercelik