etch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vei...@apache.org
Subject svn commit: r1578908 - in /etch/trunk/binding-cpp/runtime: include/support/EtchRuntime.h src/main/support/EtchRuntime.cpp
Date Tue, 18 Mar 2014 14:04:51 GMT
Author: veithm
Date: Tue Mar 18 14:04:51 2014
New Revision: 1578908

URL: http://svn.apache.org/r1578908
Log:
Enabling setting of loglevel in EtchRuntime for default logger

An additional constructor for the EtchRuntime makes it possible now to set
the log level for the default console appender.

Change-Id: I19ab47ca7d6fb941a38e7e952a40ab954efd84f9

Modified:
    etch/trunk/binding-cpp/runtime/include/support/EtchRuntime.h
    etch/trunk/binding-cpp/runtime/src/main/support/EtchRuntime.cpp

Modified: etch/trunk/binding-cpp/runtime/include/support/EtchRuntime.h
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/include/support/EtchRuntime.h?rev=1578908&r1=1578907&r2=1578908&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/include/support/EtchRuntime.h (original)
+++ etch/trunk/binding-cpp/runtime/include/support/EtchRuntime.h Tue Mar 18 14:04:51 2014
@@ -43,12 +43,19 @@ public:
 
   /**
    * Create a new instance of the EtchRuntime class
-   * It uses the default Console Log Appender for logging.
+   * It uses the default Console Log Appender for logging with log level WARN.
    */
   EtchRuntime();
 
   /**
    * Create a new instance of the EtchRuntime class
+   * It uses the default Console Log Appender for logging with the given log level.
+   * @param logLevel the log level
+   */
+  EtchRuntime(EtchLogLevel logLevel);
+
+  /**
+   * Create a new instance of the EtchRuntime class
    * @param logAppender the log appender
    * @param logLevel the log level
    */

Modified: etch/trunk/binding-cpp/runtime/src/main/support/EtchRuntime.cpp
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/support/EtchRuntime.cpp?rev=1578908&r1=1578907&r2=1578908&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/support/EtchRuntime.cpp (original)
+++ etch/trunk/binding-cpp/runtime/src/main/support/EtchRuntime.cpp Tue Mar 18 14:04:51 2014
@@ -32,11 +32,20 @@ EtchRuntime::EtchRuntime()
   generateRuntimeId();
 }
 
+EtchRuntime::EtchRuntime(EtchLogLevel logLevel)
+  :   mIsClosed(false)
+    , mLogger(mDefaultLogAppender)
+{
+  mLogger.setLogLevel(logLevel);
+
+  //assign a unique id to this runtime
+  generateRuntimeId();
+}
+
 EtchRuntime::EtchRuntime(IEtchLogAppender& logAppender, EtchLogLevel logLevel)
   :   mIsClosed(false)
     , mLogger(logAppender)
 {
-  //Default log level is WARN
   mLogger.setLogLevel(logLevel);
 
   //assign a unique id to this runtime



Mime
View raw message