diff options
-rw-r--r-- | rebar.config | 4 | ||||
-rw-r--r-- | rebar.lock | 4 | ||||
-rw-r--r-- | src/rebar_log.erl | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/rebar.config b/rebar.config index eb3dd78..44fe066 100644 --- a/rebar.config +++ b/rebar.config @@ -1,14 +1,14 @@ %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- %% ex: ts=4 sw=4 ft=erlang et -{deps, [{erlware_commons, "0.16.0"}, +{deps, [{erlware_commons, "0.17.0"}, {ssl_verify_hostname, "1.0.5"}, {certifi, "0.1.1"}, {providers, "1.5.0"}, {getopt, "0.8.2"}, {bbmustache, "1.0.4"}, {relx, "3.7.1"}, - {cf, "0.1.3"}]}. + {cf, "0.2.1"}]}. {escript_name, rebar3}. {escript_emu_args, "%%! +sbtu +A0\n"}. @@ -1,7 +1,7 @@ [{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.0.4">>},0}, {<<"certifi">>,{pkg,<<"certifi">>,<<"0.1.1">>},0}, - {<<"cf">>,{pkg,<<"cf">>,<<"0.1.3">>},0}, - {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.16.0">>},0}, + {<<"cf">>,{pkg,<<"cf">>,<<"0.2.1">>},0}, + {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.17.0">>},0}, {<<"getopt">>,{pkg,<<"getopt">>,<<"0.8.2">>},0}, {<<"providers">>,{pkg,<<"providers">>,<<"1.5.0">>},0}, {<<"relx">>,{pkg,<<"relx">>,<<"3.7.1">>},0}, 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). |