#include <y2util/y2log.h>#include "ExecutionEnvironment.h"Go to the source code of this file.
Classes | |
| class | Logger |
| c++ interface for logging More... | |
Defines | |
| #define | y2scanner(file, line, format, args...) y2_logger(LOG_ERROR,"Scanner",file,line,"",format,##args) |
| #define | syn2error(file, line, format, args...) y2_logger(LOG_ERROR,"Parser",file,line,"",format,##args) |
| #define | syn2warning(file, line, format, args...) y2_logger(LOG_WARNING,"Parser",file,line,"",format,##args) |
| #define | sem2error(file, line, format, args...) y2_logger(LOG_ERROR,"Runtime",file,line,"",format,##args) |
| #define | ycp2log(level, file, line, func, format, args...) y2_logger(level,"YCP",file,line,func,format,##args) |
| #define | y2ycp(level, file, line, format, args...) y2_logger(level,"Interpreter",file,line,"",format,##args) |
| #define | ycp2debug(file, line, format, args...) y2ycp(LOG_DEBUG,file,line,format,##args) |
| #define | ycp2milestone(file, line, format, args...) y2ycp(LOG_MILESTONE,file,line,format,##args) |
| #define | ycp2warning(file, line, format, args...) y2ycp(LOG_WARNING,file,line,format,##args) |
| #define | ycp2error(format, args...) |
| #define | ycp2error(format, args...) |
| #define | ycp2security(file, line, format, args...) y2ycp(LOG_SECURITY,file,line,format,##args) |
| #define | ycp2internal(file, line, format, args...) y2ycp(LOG_INTERNAL,file,line,format,##args) |
| #define | ycp_log(level, format, args...) |
| #define | ycperror(format, args...) ycp_log(LOG_ERROR, format, ##args) |
| #define | ycpwarning(format, args...) ycp_log(LOG_WARNING, format, ##args) |
| #define | ycpdebug(format, args...) ycp_log(LOG_DEBUG, format, ##args) |
| #define | ycpinternal(format, args...) ycp_log(LOG_INTERNAL, format, ##args) |
| #define | ycpmilestone(format, args...) ycp_log(LOG_MILESTONE, format, ##args) |
| #define sem2error | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2_logger(LOG_ERROR,"Runtime",file,line,"",format,##args) |
| #define syn2error | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2_logger(LOG_ERROR,"Parser",file,line,"",format,##args) |
| #define syn2warning | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2_logger(LOG_WARNING,"Parser",file,line,"",format,##args) |
| #define y2scanner | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2_logger(LOG_ERROR,"Scanner",file,line,"",format,##args) |
| #define y2ycp | ( | level, | |||
| file, | |||||
| line, | |||||
| format, | |||||
| args... | ) | y2_logger(level,"Interpreter",file,line,"",format,##args) |
| #define ycp2debug | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2ycp(LOG_DEBUG,file,line,format,##args) |
| #define ycp2error | ( | format, | |||
| args... | ) |
Value:
do { \ extern ExecutionEnvironment ee; \ y2ycp(LOG_ERROR, ee.filename().c_str(), ee.linenumber(), format, ##args); \ } while (0)
| #define ycp2error | ( | format, | |||
| args... | ) |
Value:
do { \ extern ExecutionEnvironment ee; \ y2ycp(LOG_ERROR, ee.filename().c_str(), ee.linenumber(), format, ##args); \ } while (0)
| #define ycp2internal | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2ycp(LOG_INTERNAL,file,line,format,##args) |
| #define ycp2log | ( | level, | |||
| file, | |||||
| line, | |||||
| func, | |||||
| format, | |||||
| args... | ) | y2_logger(level,"YCP",file,line,func,format,##args) |
| #define ycp2milestone | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2ycp(LOG_MILESTONE,file,line,format,##args) |
| #define ycp2security | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2ycp(LOG_SECURITY,file,line,format,##args) |
| #define ycp2warning | ( | file, | |||
| line, | |||||
| format, | |||||
| args... | ) | y2ycp(LOG_WARNING,file,line,format,##args) |
| #define ycp_log | ( | level, | |||
| format, | |||||
| args... | ) |
Value:
do { \ extern ExecutionEnvironment ee; \ y2_logger(level, Y2LOG, ee.filename().c_str(), ee.linenumber(), "", format, ##args); \ } while (0)
| #define ycpdebug | ( | format, | |||
| args... | ) | ycp_log(LOG_DEBUG, format, ##args) |
| #define ycperror | ( | format, | |||
| args... | ) | ycp_log(LOG_ERROR, format, ##args) |
| #define ycpinternal | ( | format, | |||
| args... | ) | ycp_log(LOG_INTERNAL, format, ##args) |
| #define ycpmilestone | ( | format, | |||
| args... | ) | ycp_log(LOG_MILESTONE, format, ##args) |
| #define ycpwarning | ( | format, | |||
| args... | ) | ycp_log(LOG_WARNING, format, ##args) |
1.5.0