Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Change log level

Change log level

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When I use the new logging framework and use any methods below Info() II'm not seeing any output (i.e. it seems to ignore trace and debug statements). Is there a global config setting that we can change to include lower level messages?

Thanks!


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Imar,

Try this...

LogManager.Current.SetGlobalLogThreshold(LogLevel.Debug);
// Do your logging
LogManager.Current.ResetGlobalLogThreshold();

/Morten

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Morten. But isn't there a way to do it through the UI or settings? In other words, does it require code and deployment to turn on and off lower level logging?

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Unfortunately there are no configuration settings, but the feature request has already been added to our backlog - TFS#36356

See http://doc.dynamicweb.com/forum/dynamicweb-9-0-upgrade-issues/dynamicweb-9-0-upgrade-issues/issues-with-nlog

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, that's help. Thanks again!

 

You must be logged in to post in the forum