Gromacs  2019-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
gmx::MDLogger Class Reference

#include <gromacs/utility/logger.h>

+ Collaboration diagram for gmx::MDLogger:


Declares a logging interface.

Typically, this object is not created directly, but instead through LoggerBuilder.

For now, this is named MDLogger, since it is used only there, and it is not clear whether the logging levels can be the same throughout the code. It should be relatively straightforward to split this into multiple classes with different supported logging levels without changing calling code, or to rename it to Logger if we do not need any specialization.

Public Types

enum  LogLevel { Warning, Info }
 Supported logging levels.

Public Member Functions

 MDLogger (ILogTarget *targets[LogLevelCount])
 Creates a logger with the given targets.

Public Attributes

LogLevelHelper warning
 For writing at LogLevel::Warning level.
LogLevelHelper info
 For writing at LogLevel::Info level.

Static Public Attributes

static const int LogLevelCount = static_cast<int>(Info) + 1
 Number of logging levels.

The documentation for this class was generated from the following files: