aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-11-10 08:45:02 +0100
committerGuido Günther <agx@sigxcpu.org>2016-11-10 08:48:38 +0100
commit844316a136a40e67ea4fa34a3a59fc5fd9f421e6 (patch)
tree1dbc56494481ca064b13c27ff51b8b31d1811c3c
parent3579fc63ca3a9b3e3284238f3a551b86a4796281 (diff)
Use webmachine logging everywhere
-rw-r--r--src/ldapsp_log.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldapsp_log.erl b/src/ldapsp_log.erl
index 58f9031..7ec808c 100644
--- a/src/ldapsp_log.erl
+++ b/src/ldapsp_log.erl
@@ -8,17 +8,17 @@
-spec info(string(), list()) -> ok.
info(Fmt, Args) ->
- io:fwrite("[I] Ldasp: " ++ Fmt, Args).
+ webmachine_log:log_info(io_lib:format(Fmt, Args)).
-spec warn(string(), list()) -> ok.
warn(Fmt, Args) ->
- io:fwrite("[W] Ldasp: " ++ Fmt, Args).
+ webmachine_log:log_error(io_lib:format(Fmt, Args)).
-spec err(string(), list()) -> ok.
err(Fmt, Args) ->
- io:fwrite("[E] Ldasp: " ++ Fmt, Args).
+ webmachine_log:log_error(io_lib:format(Fmt, Args)).
-spec debug(string(), list()) -> ok.
debug(Fmt, Args) ->
- io:fwrite("[D] Ldasp: " ++ Fmt, Args).
+ webmachine_log:log_info(io_lib:format(Fmt, Args)).