y2log.h File Reference

#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 Documentation

#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)

Referenced by Scanner::logError().

#define syn2warning ( file,
line,
format,
args...   )     y2_logger(LOG_WARNING,"Parser",file,line,"",format,##args)

Referenced by Scanner::logWarning().

#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)

Referenced by YCPMapRep::add(), Y2YCPFunction::appendParameter(), Y2StdioFunction::appendParameter(), as_integer(), as_list(), as_string(), YCPValueRep::asBoolean(), YCPValueRep::asByteblock(), YCPValueRep::asCode(), YCPValueRep::asEntry(), YCPValueRep::asExternal(), YCPValueRep::asFloat(), YCPValueRep::asInteger(), YCPValueRep::asList(), YCPValueRep::asMap(), YCPValueRep::asPath(), YCPValueRep::asReference(), YCPValueRep::asString(), YCPValueRep::asSymbol(), YCPValueRep::asTerm(), YCPValueRep::asVoid(), Y2WFMComponent::CallFunction(), YSBracket::commit(), YCPValueRep::compare(), YCPPathRep::Component::Component(), Type::determineFlexType(), StdioSCRAgent::Dir(), ScriptingAgent::Dir(), ModulesAgent::Dir(), AnyAgent::Dir(), StdioSCRAgent::Error(), ScriptingAgent::Error(), YSDo::evaluate(), YSRepeat::evaluate(), YSWhile::evaluate(), YSIf::evaluate(), YSBracket::evaluate(), YEFunctionPointer::evaluate(), YEFunction::evaluate(), YEBuiltin::evaluate(), YEBracket::evaluate(), YEIs::evaluate(), YETriple::evaluate(), YEBinary::evaluate(), YEUnary::evaluate(), YEPropagate::evaluate(), YEMap::evaluate(), YELocale::evaluate(), YECompare::evaluate(), YETerm::evaluate(), YEVariable::evaluate(), Y2YCPFunction::evaluateCall(), ScriptingAgent::Execute(), SCRAgent::Execute(), ScriptingAgent::executeSubagentCommand(), f_div(), YCPMapRep::functionalAdd(), i_div(), Import::import(), l_filter(), l_find(), l_flatten(), l_foreach(), l_listmap(), l_maplist(), l_reduce1(), l_reduce_helper(), l_remove(), l_select(), l_splitstring(), l_sublist1(), l_sublist2(), l_swaplist(), m_addmap(), m_changemap(), m_filter(), m_foreach(), m_haskey(), m_maplist(), m_mapmap(), m_remove(), SCRSubAgent::mount(), NFlexType::NFlexType(), YCPCodeCompare::operator()(), AnyAgent::otherCommand(), ScriptingAgent::Read(), AnyAgent::Read(), SCRAgent::readconf(), StaticDeclaration::readDeclaration(), Bytecode::readEntry(), AnyAgent::readFile(), StdioSCRAgent::RegisterAgent(), SCRAgent::RegisterAgent(), SCRAgent::RegisterNewAgents(), YCPMapRep::remove(), YCPListRep::remove(), s_crypt(), s_cryptbigcrypt(), s_cryptblowfish(), s_cryptmd5(), s_lsubstring1(), s_lsubstring2(), s_mergestring(), s_regexpmatch(), s_regexppos(), s_regexpsub(), s_regexptokenize(), s_substring1(), s_substring2(), Setenv2(), Srandom2(), WFMSubAgent::start(), t_remove(), YETerm::toString(), StdioSCRAgent::UnregisterAgent(), SCRAgent::UnregisterAgent(), SCRAgent::UnregisterAllAgents(), AnyAgent::validateCache(), YCPListRep::value(), StdioSCRAgent::Write(), ScriptingAgent::Write(), ResolverAgent::Write(), IniAgent::Write(), AnyAgent::Write(), YCPError(), YCPPathRep::YCPPathRep(), and YSImport::YSImport().

#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)

Referenced by l_changelist(), and m_changemap().

#define ycpmilestone ( format,
args...   )     ycp_log(LOG_MILESTONE, format, ##args)
#define ycpwarning ( format,
args...   )     ycp_log(LOG_WARNING, format, ##args)

Generated on a sunny day for yast2-core by doxygen 1.6.3