A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoggingDetails Struct Reference

#include <genesis/utils/core/logging.hpp>

Detailed Description

POD stuct containing the settings for which information is included with each logging message.

The details are activated via accessing the static variable of the Logging class:

Logging::details.level = true;

All active details are prepended to the actual log message and separated by spaces (execpt file and line, they are separated by a colon). Their order is fixed.

A message with all details activates looks like this

0003 2014-10-28 11:40:47 0.001859 0.000103 src/main/main.cc:28 (int main (int argc, char* argv[])) INFO Hello World.

It was the third message being logged in this run of the program, at a date and time, 0.001859 sec after the program started and 0.000103 sec after the last log message. It was called from main.cc line 28 in function main and has LoggingLevel Info.

Definition at line 250 of file logging.hpp.

Public Attributes

bool count
 Include a counter of how many messages have been logged so far. More...
 
bool date
 Include the current date. More...
 
bool file
 Include the filename where the log message was generated. More...
 
bool function
 Include the function name where the log message was generated. More...
 
bool level
 Include the level (e.g. Info, Debug) of the message. More...
 
bool line
 Include the line of the file where the log message was generated. More...
 
bool rundiff
 Include the run time difference to the last log message in sec. More...
 
bool runtime
 Include the current run time of the program in sec. More...
 
bool time
 Include the current time. More...
 

Member Data Documentation

bool count

Include a counter of how many messages have been logged so far.

Definition at line 252 of file logging.hpp.

bool date

Include the current date.

Definition at line 255 of file logging.hpp.

bool file

Include the filename where the log message was generated.

Definition at line 273 of file logging.hpp.

bool function

Include the function name where the log message was generated.

This might not be available on certain compilers. In this case, it is empty.

Definition at line 286 of file logging.hpp.

bool level

Include the level (e.g. Info, Debug) of the message.

Definition at line 289 of file logging.hpp.

bool line

Include the line of the file where the log message was generated.

Definition at line 279 of file logging.hpp.

bool rundiff

Include the run time difference to the last log message in sec.

Useful for timing and profiling code sections. Is 0.0 at the first log message.

Definition at line 270 of file logging.hpp.

bool runtime

Include the current run time of the program in sec.

Definition at line 261 of file logging.hpp.

bool time

Include the current time.

Definition at line 258 of file logging.hpp.


The documentation for this struct was generated from the following file: