Wonolog icon indicating copy to clipboard operation
Wonolog copied to clipboard

Log to custom channel

Open ericosullivanwp opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I'm trying to configure a custom logging channel so that the logs from our plugin can be easily distinguished from log records from other plugins that may be using wonolog.

Describe the solution you'd like A way to set a custom channel that we can log to. Looking at the code in Channels.php, it raises an exception if a channel is specified that the comoponent is unaware of which implies, that it should be possible to add more known channels.

Describe alternatives you've considered We can simply create a wrapper for our plugin that prefixes all log records with a custom string but this feels like a cludge given teh level of customizable features in other aspects of Wonolog.

ericosullivanwp avatar Jan 20 '22 11:01 ericosullivanwp