logo

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Vladimir Gonchar  
#1 Posted : Tuesday, March 17, 2015 1:23:02 PM(UTC)
Vladimir Gonchar

Rank: Member

Joined: 12/1/2014(UTC)
Posts: 19

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Hello,
Every time I start my program one of your libraries creates logXX.txt file in logs folder.
It saves a lot of information like this:

17.03.2015 16:12:24.066322 [All][Diagnosis][0xEB1FAB40]Diagnosis Info:Incoming Sequence = '1', next processing sequenc = '1', buffered Sequencs '{1}', Subscription = '953719188'.
17.03.2015 16:12:24.066332 [All][Diagnosis][0xEB1FAB40]Diagnosis Info:Removed Sequences '', Subscription = '953719188'.
17.03.2015 16:12:24.066361 [All][Diagnosis][0xEB1FAB40]Session'{482aca59-01a3-f24d-bb94-4d429eb7330b}':Diagnosis Info-- Outstanding publish requests count is 1


Number of files and space they use is growing very fast . I got 2GB logs in 1 month intensive using.

How can I turn this off?

Thank you.
Offline Roger Fortune  
#2 Posted : Tuesday, March 17, 2015 4:10:58 PM(UTC)
Roger Fortune

Rank: Advanced Member

Joined: 10/21/2014(UTC)
Posts: 105

Was thanked: 35 time(s) in 32 post(s)
Hi,

Can you please advise what product this log is from?

Kind regards

Roger
Offline Patrick Griffiths  
#3 Posted : Tuesday, March 17, 2015 4:44:47 PM(UTC)
Patrick Griffiths

Rank: Advanced Member

Joined: 11/28/2014(UTC)
Posts: 37

Was thanked: 13 time(s) in 11 post(s)
Hi Vladimir,

Sorry for the delay responding - I'm a little under the weather today.

The log is configured using the ILogConfiguration and ILogger interfaces. If you're using the sample code I sent you some time ago, just look for these interfaces and you'll be in the right neighborhood. You could either reduce the total amount of space the logs will use before rolling over by calling ILoggerConfiguration::SetFolderSize with a smaller value, or you can turn it off completely by calling ILoggerConfiguration::SetLogLevel(ILogger::Log_Level_None).

I suggest reducing the total size the logs will use and setting a log level of Log_Level_Critical or Log_Level_Low. Turning them off completely might not be the best option.

HTH,
Patrick
thanks 1 user thanked Patrick Griffiths for this useful post.
Offline Vladimir Gonchar  
#4 Posted : Wednesday, March 18, 2015 7:26:46 AM(UTC)
Vladimir Gonchar

Rank: Member

Joined: 12/1/2014(UTC)
Posts: 19

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Hi Patrick,

UA_LOG_LEVEL_CRITICAL fixed my problem.

Thanks for help.


thanks 1 user thanked Vladimir Gonchar for this useful post.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Matrikon Subscribe  |   Matrikon Unsubscribe  |   Global Unsubscribe  |   Privacy Statement  |   Do Not Sell My Personal Information   |   Cookie Notice