AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.12.2008, 00:06   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
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, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX: Managing Your Supply Chain Using Microsoft Dynamics AX 2009 - Book Review Blog bot DAX Blogs 0 31.03.2009 23:06
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax (deux) Blog bot DAX Blogs 7 28.01.2009 17:45
gatesasbait: How to create and post a financial voucher in Dynamics Ax Blog bot DAX Blogs 0 11.12.2008 22:05
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:55.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.