38 char time_buffer[100];
39 memset(time_buffer, 0, 100);
41 int(time_stamp.
days()),
42 int(time_stamp.
hours()),
45 stream << time_buffer;
63 calc_secs = -calc_secs;
67 stream << calc_secs / 3600 <<
"h";
68 calc_secs = calc_secs % 3600;
72 stream << calc_secs / 60 <<
"m";
73 calc_secs=calc_secs % 60;
77 stream << calc_secs <<
"s";
80 if (calc_nsec / 1000000 * 1000000 == calc_nsec)
82 stream << calc_nsec / 1000000 <<
"ms";
84 else if (calc_nsec / 1000 * 1000 == calc_nsec)
86 stream << calc_nsec <<
"us";
90 stream << calc_nsec <<
"ns";
100 bool
initialize(
int &argc,
char *argv[],
bool remove_read_arguments)
127 boost::shared_ptr<LifeCycle>
autoStart(
int &argc,
char *argv[])
129 return boost::shared_ptr<LifeCycle>(
new LifeCycle(argc, argv));
138 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 140 bool Initialize(
int &argc,
char *argv[],
bool remove_read_arguments)
all options have to be registered
Represents absolute times.
bool initialize(int &argc, char *argv[], bool remove_read_arguments)
bool initialize(int &argc, char *argv[], bool remove_read_arguments)
Contains global functions for string manipulation, encapsulated into the icl_core::os namespace...
int64_t days() const
Use this function if you want to express the time in days.
known command line options are removed
static LoggingManager & instance()
Base header file for the configuration framework.
boost::shared_ptr< LifeCycle > autoStart(int &argc, char *argv[])
ICL_CORE_VC_DEPRECATE_STYLE bool Initialize(int &argc, char *argv[], bool remove_read_arguments) ICL_CORE_GCC_DEPRECATE_STYLE
ParameterRegistrationCheck
void setLogLevel(icl_core::logging::LogLevel log_level)
Set a global log level for all streams.
command line options are left untouched
Contains global LXRT functions.
void setLogLevel(icl_core::logging::LogLevel log_level)
Set the log level globally for all existing streams.
Repesents absolute times.
Implements the actual logging for an individual thread.
ThreadStream & operator<<(ThreadStream &stream, const icl_core::TimeStamp &time_stamp)
void * memset(void *dest, int c, size_t count)
String formatIso8601() const
int snprintf(char *buffer, size_t maxlen, const char *format,...)