Skip to content

cesarrrguez/Log4NetDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log4NET Demo

RELEASE LICENSE

Application to see Log4Net examples.

Examples

ConsoleAppender_Thread

Console appender with the number of the current thread.

ConsoleAppender_Logger

Console appender with the name of the log file called.

ConsoleAppender_LevelRangeFilter

Console appender with a level range filter for filter in these case logs between WARN and ERROR levels, excluding DEBUG, INFO AND FATAL logs.

ConsoleAppender_StringMatchFilter

Console appender with a string match filter for filter in these case logs with application word.

ConsoleAppender_LevelMatchFilter

Console appender with a level match filter for filter in these case DEBUG logs, excluding the other levels.

ConsoleAppender_Data

Console appender with full complete data at the pattern layout.

ConsoleAppender_Property

Console appender with an own property at the pattern layout.

ColoredConsoleAppender

Colored console appender with a defined style for ERROR logs.

FileAppender

File appender with a log file at Logs\LogFile.txt.

RollingFileAppender

Rolling file appender with a log file at Logs\RollingFileLog.txt.

RollingFileAppender_Date

Complete rolling file appender with a log file at \logs path with date file name.

License

The MIT License (MIT). Please see License for more information.