Using this library is simple as 1-2-3:


1) Add reference to Logger.dll. If you vant to use dynamic logger version create logger object

LoggerDynamic log = new LoggerDynamic();

2) Add logging facility:

log.Add(LoggerType.File, null, null, {logging directory}, FileFormat.CSV);

or

log.Add(LoggerType.DataBase, {LoggingConnectionString}, {LogginDBTable}, null, null);


3) Use it:
log.LogEvent(new LogItem(DateTime.Now, "Your app name", Level.Warning, "Your message"));

That's all folks!

Last edited Feb 15, 2012 at 8:40 AM by Eugene_Mikhaylov, version 1

Comments

No comments yet.