Grinnz / Mojolicious-Plugin-Log-Any

Mojolicious::Plugin::Log::Any - Use other loggers in a Mojolicious application
https://metacpan.org/pod/Mojolicious::Plugin::Log::Any
Other
0 stars 1 forks source link

Add message_separator option #5

Closed robrwo closed 3 years ago

robrwo commented 3 years ago

This adds a message_separator option to override the newlines used to separate messages. For example, a space may be more appropriate for logging to Syslog. This fixes #4.

Grinnz commented 3 years ago

Thanks. Interestingly, the core Mojo::Log behavior now defaults to a space separator instead of newline, but this is a good compromise.

Grinnz commented 3 years ago

Could you also add documentation in Mojolicious::Plugin::Log::Any, since all configuration options are passed through to attach_logger.

robrwo commented 3 years ago

Could you also add documentation in Mojolicious::Plugin::Log::Any, since all configuration options are passed through to attach_logger.

Done.