1 #include <tjutils/tjlog.h>
10 const char* env=getenv(C::get_compName());
27 :
LogBase(C::get_compName(),objectLabel,0,functionName), constrLevel(level) {
29 ODINLOG(*
this,constrLevel) <<
"START" << STD_endl;
35 :
LogBase(C::get_compName(),0,labeledObject,functionName), constrLevel(level) {
37 ODINLOG(*
this,constrLevel) <<
"START" << STD_endl;
43 ODINLOG(*
this,constrLevel) <<
"END" << STD_endl;
49 if(level!=ignoreArgument) logLevel=level;
62 ~LogUnregister() {LogBase::unregister_component(C::get_compName());}
66 #define LOGGROUNDWORK(COMPONENT) \
67 template class Log<COMPONENT>; \
68 EMPTY_TEMPL_LIST logPriority Log<COMPONENT>::logLevel=RELEASE_LOG_LEVEL; \
69 EMPTY_TEMPL_LIST bool Log<COMPONENT>::registered=false; \
70 static LogUnregister<COMPONENT> COMPONENT ## _unregister;
Log(const char *objectLabel, const char *functionName, logPriority level=verboseDebug)