10.12.2008, 00:06 | #1 |
Участник
|
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax
Источник: http://gatesasbait.spaces.live.com/B...B9F5!277.entry
============== Good afternoon, The following piece of code is useful when you want a section of code not to report to the infolog, but still want previous messages to be shown at the end of execution. public static void suppressInfolog(Args _args) { SysInfologLevel sysInfologLevel; ; info("A"); sysInfologLevel = infolog.infologLevel(); infolog.setInfoLogLevel(SysInfologLevel::None); info("B"); //Section of code that will not get reported to the infolog infolog.setInfoLogLevel(sysInfologLevel); info("C"); } Only "A" and "C" will be displayed, "B" will have been suppressed. Источник: http://gatesasbait.spaces.live.com/B...B9F5!277.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|