couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch-log commit: updated refs/heads/1843-feature-bigcouch to ed34546
Date Wed, 12 Feb 2014 23:32:03 GMT
Updated Branches:
  refs/heads/1843-feature-bigcouch b1c0e80af -> ed3454670


Change API to function per level


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/commit/ed345467
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/tree/ed345467
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/diff/ed345467

Branch: refs/heads/1843-feature-bigcouch
Commit: ed3454670cf960d217e2f38443ed3870bd452c93
Parents: b1c0e80
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Feb 12 23:15:32 2014 +0000
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Feb 12 23:15:32 2014 +0000

----------------------------------------------------------------------
 src/couch_log.erl | 49 +++++++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/ed345467/src/couch_log.erl
----------------------------------------------------------------------
diff --git a/src/couch_log.erl b/src/couch_log.erl
index 0e84dd9..dd6f25e 100644
--- a/src/couch_log.erl
+++ b/src/couch_log.erl
@@ -12,27 +12,28 @@
 
 -module(couch_log).
 
--export([log/3]).
-
-log(debug, Msg, Args) ->
-    lager:debug(Msg, Args);
-log(info, Msg, Args) ->
-    lager:info(Msg, Args);
-log(notice, Msg, Args) ->
-    lager:notice(Msg, Args);
-log(warn, Msg, Args) ->
-    lager:warning(Msg, Args);
-log(warning, Msg, Args) ->
-    lager:warning(Msg, Args);
-log(err, Msg, Args) ->
-    lager:error(Msg, Args);
-log(error, Msg, Args) ->
-    lager:error(Msg, Args);
-log(critical, Msg, Args) ->
-    lager:critical(Msg, Args);
-log(alert, Msg, Args) ->
-    lager:alert(Msg, Args);
-log(emerg, Msg, Args) ->
-    lager:emergency(Msg, Args);
-log(emergency, Msg, Args) ->
-    lager:emergency(Msg, Args).
+-export([debug/2, info/2, notice/2, warning/2, error/2, critical/2, alert/2, emergency/2]).
+
+debug(Fmt, Args) ->
+    lager:debug(Fmt, Args).
+
+info(Fmt, Args) ->
+    lager:info(Fmt, Args).
+
+notice(Fmt, Args) ->
+    lager:notice(Fmt, Args).
+
+warning(Fmt, Args) ->
+    lager:warning(Fmt, Args).
+
+error(Fmt, Args) ->
+    lager:error(Fmt, Args).
+
+critical(Fmt, Args) ->
+    lager:critical(Fmt, Args).
+
+alert(Fmt, Args) ->
+    lager:alert(Fmt, Args).
+
+emergency(Fmt, Args) ->
+    lager:emergency(Fmt, Args).


Mime
View raw message