Sometimes missing log entries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Sometimes missing log entries

Michal
Hi,
I am using log4net version 1.2.15.0 as Nuget and sometimes I miss some log entries.
I am loading .net functions via pythonnet, but it looks like it entres to the function and sometimes there are missing some logs.
So I enabled internal debug logging.
 
There is a code what I have:
logger.Info("reading def");
string textDefinition = FileExtensions.ReadAllTextReadOnly(testPath);
logger.Info("Definition");
logger.Debug(textDefinition);

try
{
    testDefinition = JsonConvert.DeserializeObject<TestSuiteDefinition>(textDefinition);
}
catch (Exception e)
{
    logger.Info("failed reload def");
    logger.Info(e.Message);
}

logger.Info("test 1");
And this is what I have logged, but just sometimes, in most of all cases it logs everything.
2016-05-10T18:33:50 reading def
2016-05-10T18:33:50 Definition
2016-05-10T18:33:50 { very long JSON... }
After some time logging continues.
I uploaded log4net internal debug log: http://textuploader.com/5btua, but I have nothing susspicious found.
Could you please help me what to do to determine problem why there are missing some logs?
It is happening on 7x64 and also on Mac OS Yosemite with mono.