yast2-core
Classes | Macros
libycp/src/include/ycp/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...
 

Macros

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

Macro Definition 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 { \
y2ycp(LOG_ERROR, YaST::ee.filename().c_str(), YaST::ee.linenumber(), format, ##args); \
} while (0)
#define y2ycp(level, file, line, format, args...)
Definition: libycp/src/include/ycp/y2log.h:32
Definition: liby2util-r/src/include/y2util/y2log.h:27
ExecutionEnvironment ee
Definition: ExecutionEnvironment.cc:29
std::string format(const char *format,...)
Definition: IniParser.cc:1027

Referenced by YCPMapRep::add(), Y2YCPFunction::appendParameter(), as_boolean(), 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(), ModulesAgent::Dir(), ScriptingAgent::Dir(), AnyAgent::Dir(), StdioSCRAgent::Error(), ScriptingAgent::Error(), YEVariable::evaluate(), YETerm::evaluate(), YECompare::evaluate(), YELocale::evaluate(), YEMap::evaluate(), YEPropagate::evaluate(), YEUnary::evaluate(), YEBinary::evaluate(), YSBracket::evaluate(), YETriple::evaluate(), YSIf::evaluate(), YEIs::evaluate(), YSWhile::evaluate(), YEBracket::evaluate(), YSRepeat::evaluate(), YSDo::evaluate(), YEBuiltin::evaluate(), YEFunction::evaluate(), YEFunctionPointer::evaluate(), Y2YCPFunction::evaluateCall(), SCRAgent::Execute(), ScriptingAgent::Execute(), ScriptingAgent::executeSubagentCommand(), f_div(), YCPMapRep::functionalAdd(), i_div(), Import::import(), l_add(), l_filter(), l_find(), l_flatten(), l_foreach(), l_listmap(), l_maplist(), l_reduce1(), l_reduce_helper(), l_remove(), l_reverselist(), 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_cryptblowfish(), s_cryptmd5(), s_cryptsha256(), s_cryptsha512(), s_mergestring(), s_regexpmatch(), s_regexppos(), s_regexpsub(), s_regexptokenize(), s_substring1(), s_substring2(), Setenv2(), Srandom2(), t_remove(), YETerm::toString(), YaST::agent_ini::unquote(), StdioSCRAgent::UnregisterAgent(), SCRAgent::UnregisterAgent(), SCRAgent::UnregisterAllAgents(), AnyAgent::validateCache(), YCPListRep::value(), ResolverAgent::Write(), StdioSCRAgent::Write(), ScriptingAgent::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 { \
y2_logger(level, Y2LOG, YaST::ee.filename().c_str(), YaST::ee.linenumber(), "", format, ##args); \
} while (0)
#define Y2LOG
Definition: Y2CCIniAgent.cc:13
ExecutionEnvironment ee
Definition: ExecutionEnvironment.cc:29
std::string format(const char *format,...)
Definition: IniParser.cc:1027
#define y2_logger(level, comp, file, line, function, format, args...)
Definition: liby2util-r/src/include/y2util/y2log.h:71
#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)

Referenced by YaST::recode_errors().


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