21 # define I18N(m) dgettext("gwenhywfar", m)
29 #include <gwenhywfar/debug.h>
113 fprintf(stdout,
"%s%s",
117 "--logfile ARG name of the logfile\n"
118 "--logtype ARG log type\n"
119 "--loglevel ARG log level\n"
120 "-d ARG use ARG as domain prefix macro for function declarations\n"
121 "-o ARG name of output file (stdout if omitted)\n"
122 "--compact write a more compact file\n"
123 "-V | --version print version of this tool and exit\n"
135 if (strcmp(argv[i],
"--logfile")==0) {
141 else if (strcmp(argv[i],
"--logtype")==0) {
148 I18N(
"Unknown log type \"%s\"\n"),
153 else if (strcmp(argv[i],
"--loglevel")==0) {
160 I18N(
"Unknown log level \"%s\"\n"),
165 else if (strcmp(argv[i],
"-o")==0) {
171 else if (strcmp(argv[i],
"-d")==0) {
177 else if (strcmp(argv[i],
"--compact")==0) {
180 else if (strcmp(argv[i],
"-h")==0 || strcmp(argv[i],
"--help")==0) {
184 else if (strcmp(argv[i],
"-V")==0 || strcmp(argv[i],
"--version")==0) {
188 else if (strcmp(argv[i],
"-v")==0) {
193 if (argv[i][0]==
'-') {
194 fprintf(stderr,
I18N(
"Unknown option \"%s\"\n"),argv[i]);
GWEN_LOGGER_LEVEL GWEN_Logger_Name2Level(const char *name)
GWEN_LOGGER_LOGTYPE logType
GWEN_LOGGER_LEVEL logLevel
GWEN_LOGGER_LOGTYPE GWEN_Logger_Name2Logtype(const char *name)