jadolg / shellhook

Run scripts remotely with a simple HTTP call
MIT License
3 stars 0 forks source link

Allowconfiguring log type and level #33

Closed jadolg closed 1 month ago

jadolg commented 5 months ago

Sometimes it's more convenient to log json. Let's by default use the default logrus format and make it so if you select to or if the application discovers the output is not a tty, the format should be json. See https://github.com/jadolg/porkbun-ddns/blob/main/main.go#L64

jadolg commented 1 month ago

Done in https://github.com/jadolg/shellhook/pull/36