From 04be3f596372927f07554cde76d1e343c3a146e2 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Sun, 1 Nov 2015 00:36:13 +0100 Subject: Make output a bit more discrete --- src/rebar_log.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_log.erl b/src/rebar_log.erl index 06cfa9c..347cda4 100644 --- a/src/rebar_log.erl +++ b/src/rebar_log.erl @@ -49,12 +49,15 @@ init(Caller, Verbosity) -> ?INFO_LEVEL -> info; ?DEBUG_LEVEL -> debug end, - Log = ec_cmd_log:new(Level, Caller), + Log = ec_cmd_log:new(Level, Caller, low), application:set_env(rebar, log, Log). set_level(Level) -> ok = application:set_env(rebar, log_level, Level). +log(Level = error, Str, Args) -> + {ok, LogState} = application:get_env(rebar, log), + ec_cmd_log:Level(LogState, cf:format("~!^~s~n", [Str]), Args); log(Level, Str, Args) -> {ok, LogState} = application:get_env(rebar, log), ec_cmd_log:Level(LogState, Str++"~n", Args). -- cgit v1.1