a light log tools
C#
Switch branches/tags
Nothing to show
Latest commit 27f8820 Feb 9, 2017 @Ivony 修正行尾符

README.md

LogUtility

a light log tools

how to use?

show me log in console:

var logger = new ConsoleLogger()
logger.Info( "Hello World!" );

show me log in console and write to file:

var logger = new ConsoleLogger() + new TextFileLogger( filepath )
logger.Info( "Hello World!" );

show me log in console and write to files and auto rolling new log file:

var logger = new ConsoleLogger() + new TextFileLogger( new DirectoryInfo( directory ) )
logger.Info( "Hello World!" );