GitHub user FreeAndNil added a comment to the discussion: Support for template 
names

There are some possibilities:

You can
- derive your own `LoggingEvent`
- override `RenderedMessage` and `WriteRenderedMessage` (with your special 
format logic)
- derive your own logger
- override `ForcedLog`
- create your own `LoggingEvent` class (instead of `LoggingEvent`)

**This would work without changing anything in log4net itself.**

Alternatively, we could
- unseal `SystemStringFormat`
- add a factory for `SystemStringFormat`

You could then
- derive from `SystemStringFormat` and override `ToString()`
- configure the factory to create your derived class

**This needs work inside log4net and on your side.**



GitHub link: 
https://github.com/apache/logging-log4net/discussions/261#discussioncomment-13618287

----
This is an automatically sent email for dev@logging.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org

Reply via email to