LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Namespaces | Classes | Functions
lsst.log Namespace Reference

Namespaces

 detail
 
 log
 
 version
 

Classes

class  Log
 
class  LogContext
 

Functions

std::string getFileExtension (std::string const &filename)
 
void configure_iface ()
 
void configure_iface (std::string const &filename)
 
void configure_prop_iface (std::string const &properties)
 
std::string getDefaultLoggerName_iface (void)
 
void pushContext_iface (std::string const &name)
 
void popContext_iface ()
 
void MDC_iface (std::string const &key, std::string const &value)
 
void MDCRemove_iface (std::string const &key)
 
void setLevel_iface (std::string const &loggername, int level)
 
int getLevel_iface (std::string const &loggername)
 
bool isEnabledFor_iface (std::string const &loggername, int level)
 
void forcedLog_iface (std::string const &loggername, int level, std::string const &filename, std::string const &funcname, int lineno, std::string const &msg)
 

Function Documentation

void lsst::log::configure_iface ( )

Definition at line 43 of file logInterface.cc.

43  {
45 }
def configure
Definition: log.py:42
void lsst::log::configure_iface ( std::string const &  filename)

Definition at line 47 of file logInterface.cc.

47  {
48  Log::configure(filename);
49 }
def configure
Definition: log.py:42
void lsst::log::configure_prop_iface ( std::string const &  properties)

Definition at line 51 of file logInterface.cc.

51  {
52  Log::configure_prop(properties);
53 }
def configure_prop
Definition: log.py:48
void lsst::log::forcedLog_iface ( std::string const &  loggername,
int  level,
std::string const &  filename,
std::string const &  funcname,
int  lineno,
std::string const &  msg 
)

Definition at line 87 of file logInterface.cc.

90  {
91  Log::getLogger(loggername)->forcedLog(
92  log4cxx::Level::toLevel(level), msg.c_str(),
93  log4cxx::spi::LocationInfo(filename.c_str(), funcname.c_str(), lineno)
94  );
95 }
std::string lsst::log::getDefaultLoggerName_iface ( void  )

Definition at line 55 of file logInterface.cc.

55  {
57 }
def getDefaultLoggerName
Definition: log.py:51
std::string lsst::log::getFileExtension ( std::string const &  filename)

Definition at line 139 of file Log.cc.

139  {
140  size_t dotpos = filename.find_last_of(".");
141  if (dotpos == std::string::npos) {
142  return "";
143  }
144  return filename.substr(dotpos, filename.size() - dotpos);
145 }
int lsst::log::getLevel_iface ( std::string const &  loggername)

Definition at line 79 of file logInterface.cc.

79  {
80  return Log::getLevel(loggername);
81 }
def getLevel
Definition: log.py:70
bool lsst::log::isEnabledFor_iface ( std::string const &  loggername,
int  level 
)

Definition at line 83 of file logInterface.cc.

83  {
84  return Log::isEnabledFor(loggername, level);
85 }
def isEnabledFor
Definition: log.py:73
void lsst::log::MDC_iface ( std::string const &  key,
std::string const &  value 
)

Definition at line 67 of file logInterface.cc.

67  {
68  Log::MDC(key, value);
69 }
def MDC
Definition: log.py:61
void lsst::log::MDCRemove_iface ( std::string const &  key)

Definition at line 71 of file logInterface.cc.

71  {
72  Log::MDCRemove(key);
73 }
def MDCRemove
Definition: log.py:64
void lsst::log::popContext_iface ( )

Definition at line 63 of file logInterface.cc.

63  {
65 }
def popContext
Definition: log.py:58
void lsst::log::pushContext_iface ( std::string const &  name)

Definition at line 59 of file logInterface.cc.

59  {
61 }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
def pushContext
Definition: log.py:55
void lsst::log::setLevel_iface ( std::string const &  loggername,
int  level 
)

Definition at line 75 of file logInterface.cc.

75  {
76  Log::setLevel(loggername, level);
77 }
def setLevel
Definition: log.py:67