Skip to content

Commit

Permalink
Add log levels LOG_USER1 to 3 for usage by applications.
Browse files Browse the repository at this point in the history
  • Loading branch information
freekvw committed Feb 13, 2015
1 parent 8599c9d commit 2b4e325
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tpie/loglevel.h
Expand Up @@ -54,7 +54,12 @@ enum log_level {
LOG_DEBUG,

/** Logging level for warnings concerning memory allocation and deallocation. */
LOG_MEM_DEBUG
LOG_MEM_DEBUG,

/** Logging levels to be further defined by user applications. */
LOG_USER1,
LOG_USER2,
LOG_USER3
};

} //namespace tpie
Expand Down
4 changes: 4 additions & 0 deletions tpie/tpie_log.h
Expand Up @@ -212,6 +212,10 @@ class log_selector {
return log_debug();
case LOG_MEM_DEBUG:
return log_mem_debug();
case LOG_USER1:
case LOG_USER2:
case LOG_USER3:
break;
}
return log_info();
}
Expand Down

0 comments on commit 2b4e325

Please sign in to comment.