NRMutex Logger::st_mutex;
void Logger::initialize(const char* ident)
-throw() {
+{
if(st_writer == NULL) {
st_writer = new TraceLogger;
st_writer->initialize(ident);
}
void Logger::initialize(const char* ident, Writer* writer)
-throw() {
+{
if(st_writer == NULL && writer != NULL) {
writer->initialize(ident);
st_writer = writer;
}
void Logger::showPID(const bool show)
-throw() {
+{
#ifndef _MT
if(show == true) {
}
void Logger::write(const Level level, const char* text, const char* fromFile, const int fromLine)
-throw() {
+{
#ifndef _MT
if(isActive(level) && st_writer != NULL) {
}
void Logger::write(const Level level, const char* text, const char* value, const char* fromFile, const int fromLine)
-throw() {
+{
#ifndef _MT
if(isActive(level) && st_writer != NULL) {
}
void Logger::write(const Level level, const char* text, const int value, const char* fromFile, const int fromLine)
-throw() {
+{
#ifndef _MT
if(isActive(level) && st_writer != NULL) {
}
void Logger::write(const Level level, const char* text, const DataBlock& value, const char* fromFile, const int fromLine)
-throw() {
+{
if(isActive(level) && st_writer != NULL) {
#ifndef _MT
}
void Logger::disable()
-throw(RuntimeException) {
+noexcept(false) {
st_mutex.lock();
st_enabled = false;
st_mutex.unlock();
}
void Logger::enable()
-throw(RuntimeException) {
+noexcept(false) {
st_mutex.lock();
st_enabled = true;
st_mutex.unlock();
}
Logger::Level Logger::asLevel(const char* stringLevel)
-throw(RuntimeException) {
+noexcept(false) {
static struct {
const char* stringLevel;
const Level level;
}
const char* Logger::asString(const Level level)
-throw() {
+{
static const char* levels [] = {
"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Information", "Debug"
};