[Groonga-commit] groonga/gcs [master] Don't output messages to the STDOUT if log file is specified

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 12 16:42:56 JST 2012


YUKI Hiroshi	2012-11-12 16:42:56 +0900 (Mon, 12 Nov 2012)

  New Revision: f9fd1fb746219d9f5bf7c7aba33c257979656df0
  https://github.com/groonga/gcs/commit/f9fd1fb746219d9f5bf7c7aba33c257979656df0

  Log:
    Don't output messages to the STDOUT if log file is specified

  Modified files:
    lib/logger.js

  Modified: lib/logger.js (+1 -0)
===================================================================
--- lib/logger.js    2012-11-12 16:39:44 +0900 (d988812)
+++ lib/logger.js    2012-11-12 16:42:56 +0900 (39edbf1)
@@ -63,5 +63,6 @@ function addFileTransport(context, filename, options) {
   options.json = false;
   options.timestamp = getLocalISOTimestamp;
   getLogger(context).add(winston.transports.File, options);
+  getLogger(context).remove(winston.transports.Console, options);
 }
 exports.addFileTransport = addFileTransport;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index