severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
258 stars 90 forks source link

Output the log to a File #132

Open ericsouza opened 3 years ago

ericsouza commented 3 years ago

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

alercelik commented 2 years ago

Did you check out standard Python logging features?

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