[asterisk-scf-commits] asterisk-scf/release/logger.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Sep 15 08:55:23 CDT 2011


branch "master" has been updated
       via  5fc48c25d75b42b9cee68fae5969935434bdc16a (commit)
      from  1ac6860fe3206e37cca9adb4745999d874f18a73 (commit)

Summary of changes:
 include/AsteriskSCF/Logger/Level.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 5fc48c25d75b42b9cee68fae5969935434bdc16a
Author: Brent Eagles <beagles at digium.com>
Date:   Thu Sep 15 11:25:06 2011 -0230

    Add "Trace" logging level

diff --git a/include/AsteriskSCF/Logger/Level.h b/include/AsteriskSCF/Logger/Level.h
index 8c4353a..4f0cd99 100644
--- a/include/AsteriskSCF/Logger/Level.h
+++ b/include/AsteriskSCF/Logger/Level.h
@@ -25,6 +25,8 @@ inline std::ostream& operator<<(std::ostream& o, Level level)
 {
     switch (level)
     {
+    case Trace:
+        return o << "Trace";
     case Debug:
         return o << "Debug";
     case Info:
@@ -49,6 +51,10 @@ inline std::ostream& operator<<(std::ostream& o, Level level)
 
 inline Level parseString(const std::string& str)
 {
+    if (str == "Trace")
+    {
+        return Trace;
+    }
     if (str == "Debug")
     {
         return Debug;

-----------------------------------------------------------------------


-- 
asterisk-scf/release/logger.git



More information about the asterisk-scf-commits mailing list