-
htin
- Posts: 14
- Joined: Wed Aug 07, 2019 9:01 am
Post
by htin » Thu Aug 29, 2019 1:19 am
any other way to use file logging. I am trying to use
Code: Select all
LogManager.SetLoggerFactory(new FileLogFactory(logfileName, LogLevel.Info));
but log files gets too big and I can not find any config to limit log file size. what I want to achieve is to log into a new log file when the existing log file reaches certain size. the existing log file is renamed according to the time. just like any other logging utils.
-
alt
- Site Admin
- Posts: 988
- Joined: Tue Apr 25, 2006 9:45 am
Post
by alt » Thu Sep 05, 2019 9:38 pm
You should use any logging framework for this. All you need to do is to implement ILogFactory and ILog interfaces.
https://docs.inetlab.com/smpp/v2/articles/tracing.html
In zip archive in Samples folder you can find LoggingWithNLog project.