Code Coverage by Clover.NET

 « Return to Thread: Custom Layouts Based on Log Level

Custom Layouts Based on Log Level

by skm376 :: Rate this Message:

Reply to Author | View in Thread

Is it possible to create custom layouts based on the log level?  For instance, I want my Error messages to output stack traces but I don't want my Trace or Info messages to display that much.  I am only using one log file.  It looks like the only solution is to create multiple targets and log different levels to different files.  Am I missing something?

 « Return to Thread: Custom Layouts Based on Log Level

LightInTheBox - Buy quality products at wholesale price