Is there a way to constraint log4n appender to log messages based on host name? I want to enable logger only on production machines and disable logging n development machines.
I know that there is an easy way to log host name with property: %property{log4net:HostName}, then I could filter logged messages by this, but I want to use smtp appender and send logged messages via email and I would like to reduce number of sent emails.
I found solution using custom filter: