My Python application sends logs to stderr, UWSGI redirects it into /var/log/uwsgi/app/myapplication.log. What is the simplest way to prefix my app log output with a timestamp? I prefer to do this with uwsgi.ini config, w/o change application code.
TIA, Vitaly
--logdate will do the trick.
eventually it takes an optional strftime-like string:
--logdate="%s"
will add the unix time as well as
--logdate="%d/%m/%Y"
will add the day/month/year prefix
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With