- lyxerr.print(string(_("Setting debug level to ")) + tostr(dbgLevel));
- lyxerr.setDebugLevel(dbgLevel);
- lyxerr.debug(string("Debugging INFO #") + tostr(Error::INFO),
- Error::INFO);
- lyxerr.debug(string("Debugging INIT #") + tostr(Error::INIT),
- Error::INIT);
- lyxerr.debug(string("Debugging KEY #") + tostr(Error::KEY),
- Error::KEY);
- lyxerr.debug(string("Debugging TOOLBAR #") + tostr(Error::TOOLBAR),
- Error::TOOLBAR);
- lyxerr.debug(string("Debugging LEX and PARSER #") +
- tostr(Error::LEX_PARSER),
- Error::LEX_PARSER);
- lyxerr.debug(string("Debugging LYXRC #") + tostr(Error::LYXRC),
- Error::LYXRC);
- lyxerr.debug(string("Debugging KBMAP #") + tostr(Error::KBMAP),
- Error::KBMAP);
- lyxerr.debug(string("Debugging LATEX #") + tostr(Error::LATEX),
- Error::LATEX);
- lyxerr.debug(string("Debugging MATHED #") + tostr(Error::MATHED),
- Error::MATHED);
- lyxerr.debug(string("Debugging FONT #") + tostr(Error::FONT),
- Error::FONT);
- lyxerr.debug(string("Debugging TCLASS #") + tostr(Error::TCLASS),
- Error::TCLASS);
- lyxerr.debug(string("Debugging LYXVC #") + tostr(Error::LYXVC),
- Error::LYXVC);
- lyxerr.debug(string("Debugging LYXSERVER #") + tostr(Error::LYXSERVER),
- Error::LYXVC);
+ lyxerr << _("Setting debug level to ") << dbgLevel << endl;
+ lyxerr.level(Debug::type(dbgLevel));
+ lyxerr[Debug::INFO] << "Debugging INFO #" << Debug::INFO << endl;
+ lyxerr[Debug::INIT] << "Debugging INIT #" << Debug::INIT << endl;
+ lyxerr[Debug::KEY] << "Debugging KEY #" << Debug::KEY << endl;
+ lyxerr[Debug::TOOLBAR] << "Debugging TOOLBAR #" << Debug::TOOLBAR << endl;
+ lyxerr[Debug::PARSER] << "Debugging LEX and PARSER #" << Debug::PARSER << endl;
+ lyxerr[Debug::LYXRC] << "Debugging LYXRC #" << Debug::LYXRC << endl;
+ lyxerr[Debug::KBMAP] << "Debugging KBMAP #" << Debug::KBMAP << endl;
+ lyxerr[Debug::LATEX] << "Debugging LATEX #" << Debug::LATEX << endl;
+ lyxerr[Debug::MATHED] << "Debugging MATHED #" << Debug::MATHED << endl;
+ lyxerr[Debug::FONT] << "Debugging FONT #" << Debug::FONT << endl;
+ lyxerr[Debug::TCLASS] << "Debugging TCLASS #" << Debug::TCLASS << endl;
+ lyxerr[Debug::LYXVC] << "Debugging LYXVC #" << Debug::LYXVC << endl;
+ lyxerr[Debug::LYXSERVER] << "Debugging LYXSERVER #" << Debug::LYXSERVER << endl;