Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Why is Log4Net not recording log statements in my separate thread?
- private static readonly ILog Log = LogManager.GetLogger("mylog");
- public static string SomeValue
- {
- get
- {
- Log.Debug("This WILL be appended to the log");
- var thread = new Thread(SyncData);
- thread.Start();
- return "the value";
- }
- }
- private static void SyncData()
- {
- Log.Debug("This will NOT be appended to log");
- var newLog = LogManager.GetLogger("mylog");
- newLog.Debug("This will also NOT be appended to the log");
- }
Add Comment
Please, Sign In to add comment