37 #define CLAW_MK_STR_(e) #e
38 #define CLAW_MK_STR(e) CLAW_MK_STR_(e)
50 : m_arguments( argc, argv )
52 setlocale( LC_ALL,
"" );
53 #ifdef CLAW_TEXT_DOMAIN_PATH
54 bindtextdomain(
"libclaw", CLAW_MK_STR(CLAW_TEXT_DOMAIN_PATH) );
56 bind_textdomain_codeset(
"libclaw",
"UTF-8" );
57 textdomain(
"libclaw");
60 (
"--log-file", claw_gettext(
"The file to use to store log informations."),
61 true, claw_gettext(
"file") );
64 claw_gettext(
"Level of log informations:\n"
65 "\t\terror: error messages,\n"
66 "\t\twarning: warning and error messages,\n"
67 "\t\tverbose: all messages."),
true, claw_gettext(
"string") );
71 (
"Use a logger that does not output successively the same message."),
76 (
"Use a logger that does not output messages that have been recently"
77 " output."),
true, claw_gettext(
"integer") );
103 if ( (level ==
"error") || (level == claw_gettext(
"error")) )
105 else if ( (level ==
"warning") || (level == claw_gettext(
"warning")) )
107 else if ( (level ==
"verbose") || (level == claw_gettext(
"verbose")) )