32 #define TR(id) OLocalizator::getString("TYMessageManager", (id))
35 static bool bDebug =
true;
37 static bool bDebug =
false;
51 va_list args =
nullptr;
59 sprintf_s(strLevel,
"%s",
TR(
"id_level_debug").toLatin1().data());
62 sprintf_s(strLevel,
"%s",
TR(
"id_level_bench").toLatin1().data());
65 sprintf_s(strLevel,
"%s",
TR(
"id_level_info").toLatin1().data());
68 sprintf_s(strLevel,
"%s",
TR(
"id_level_warning").toLatin1().data());
71 sprintf_s(strLevel,
"%s",
TR(
"id_level_error").toLatin1().data());
74 sprintf_s(strLevel,
"%s",
TR(
"id_level_fatal").toLatin1().data());
77 strcpy_s(strLevel,
"");
81 va_start(args, message);
84 vsprintf_s(tmp, message, args);
87 sprintf_s(msg,
"%s %s%s",
getStrDate(), strLevel, tmp);
100 qApp->processEvents();
void writeOutputMsg(QString msg)
Affiche un message dans la fenetre de sortie.
pour l'application Tympan (fichier header)
utilitaire pour la gestion des messages dans Tympan (fichier header)
virtual void output(const char *message, int level)
static char * getStrDate()
virtual void format(int level, const char *message,...)
virtual ~TYMessageManager()
virtual void format(int level, const char *message,...)
virtual void output(const char *message, int level)