Custom Log Level

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Custom Log Level

Amit G
Hi,
My application needs to compatible with Java, so I need Java-like log levels (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST).
The possible solutions I thought
1. extend NLog.LogLevel and have static objects inside it --> can't be done, sealed class NLog.LogLevel
2. create objects of NLog.LogLevel with java compatible names --> can't be done, private constructor for NLog.LogLevel

Any work-around?