diff options
author | Heinz N. Gies <heinz@licenser.net> | 2015-11-01 00:36:13 +0100 |
---|---|---|
committer | Heinz N. Gies <heinz@licenser.net> | 2015-11-01 00:36:13 +0100 |
commit | 04be3f596372927f07554cde76d1e343c3a146e2 (patch) | |
tree | f0178c402cf9e0fed16440d6e817e4286a6e9b5b /src | |
parent | 9bbab2781995546d76b841adabc00270ef45906a (diff) |
Make output a bit more discrete
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_log.erl | 5 |
1 files changed, 4 insertions, 1 deletions
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). |