![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel
.
More...
#include <MDSTk/System/mdsTimestamp.h>#include "mdsLog.h"#include "mdsSingleton.h"#include <string>#include <iostream>Classes | |
| class | mds::base::CGlobalLog |
| Global application log. More... | |
Namespaces | |
| namespace | mds |
Medical Data Segmentation Toolkit (MDSTk) | |
| namespace | mds::base |
Defines | |
| #define | MDS_CERR(Value) |
| Macro that mutually writes to the std::cerr. | |
| #define | MDS_GLOBAL_LOG MDS_SINGLETON(mds::base::CGlobalLog) |
| Returns reference to the global application log. | |
| #define | MDS_LOG(Value) |
| Writes a given expression to the log stream. | |
| #define | MDS_LOG_DISABLE MDS_GLOBAL_LOG.disable() |
| Disables logging. | |
| #define | MDS_LOG_ENABLE MDS_GLOBAL_LOG.enable() |
| Enables logging. | |
| #define | MDS_LOG_ENTER MDS_GLOBAL_LOG.lock() |
| Enters logging mutual section. | |
| #define | MDS_LOG_ERROR(Reason) MDS_LOG(MDS_ERROR(Reason)) |
| Creates and logs error. | |
| #define | MDS_LOG_INIT_FILE(Filename) MDS_GLOBAL_LOG.registerChannel(new mds::base::CLogChannelFStream(Filename)) |
| Initializes global application log. | |
| #define | MDS_LOG_INIT_STDERR MDS_GLOBAL_LOG.registerChannel(new mds::base::CLogChannelOStream(std::cerr)) |
| Initializes global application log. | |
| #define | MDS_LOG_LEAVE MDS_GLOBAL_LOG.unlock() |
| Leaves logging mutual section. | |
| #define | MDS_LOG_NOTE(Value) MDS_LOG("<note> " << Value << std::endl) |
| Logs a simple note. | |
| #define | MDS_LOG_TIME(Desc) MDS_LOG(MDS_TIMESTAMP(Desc)) |
| Logging disabled. | |
| #define | MDS_LOG_WARNING(Reason) MDS_LOG(MDS_WARNING(Reason)) |
| Creates and logs warning. | |
Variables | |
| const std::string | mds::base::LOG_DEFAULT_EXT = ".log" |
| Default log file extension. | |
Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel
.
Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2005/09/08
Description:
| #define MDS_CERR | ( | Value | ) |
{ \
MDS_LOG_ENTER; \
std::cerr << Value; \
MDS_LOG_LEAVE; \
}
Macro that mutually writes to the std::cerr.
Returns reference to the global application log.
| #define MDS_LOG | ( | Value | ) |
{ \
MDS_LOG_ENTER; \
MDS_GLOBAL_LOG.getStream() << Value; \
MDS_LOG_LEAVE; \
}
Writes a given expression to the log stream.
| #define MDS_LOG_DISABLE MDS_GLOBAL_LOG.disable() |
Disables logging.
| #define MDS_LOG_ENABLE MDS_GLOBAL_LOG.enable() |
Enables logging.
| #define MDS_LOG_ENTER MDS_GLOBAL_LOG.lock() |
Enters logging mutual section.
| #define MDS_LOG_ERROR | ( | Reason | ) | MDS_LOG(MDS_ERROR(Reason)) |
Creates and logs error.
| #define MDS_LOG_INIT_FILE | ( | Filename | ) | MDS_GLOBAL_LOG.registerChannel(new mds::base::CLogChannelFStream(Filename)) |
Initializes global application log.
| #define MDS_LOG_INIT_STDERR MDS_GLOBAL_LOG.registerChannel(new mds::base::CLogChannelOStream(std::cerr)) |
Initializes global application log.
| #define MDS_LOG_LEAVE MDS_GLOBAL_LOG.unlock() |
Leaves logging mutual section.
| #define MDS_LOG_NOTE | ( | Value | ) | MDS_LOG("<note> " << Value << std::endl) |
Logs a simple note.
| #define MDS_LOG_TIME | ( | Desc | ) | MDS_LOG(MDS_TIMESTAMP(Desc)) |
Logging disabled.
Logs current time.
| #define MDS_LOG_WARNING | ( | Reason | ) | MDS_LOG(MDS_WARNING(Reason)) |
Creates and logs warning.
1.7.6.1