Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lager format doesn't support tail binary as io_list [JIRA: RIAK-2434] #326

Closed
pichi opened this issue Mar 10, 2016 · 1 comment
Closed

Comments

@pichi
Copy link

pichi commented Mar 10, 2016

1> application:get_all_key(lager).
{ok,[{description,"Erlang logging framework"},
     {id,[]},
     {vsn,"3.1.0"},
     {modules,[error_logger_lager_h,lager,lager_app,
               lager_backend_throttle,lager_common_test_backend,
               lager_config,lager_console_backend,lager_crash_log,
               lager_default_formatter,lager_file_backend,lager_format,
               lager_handler_watcher,lager_handler_watcher_sup,lager_msg,
               lager_stdlib,lager_sup,lager_transform,lager_trunc_io,
               lager_util]},
     {maxP,infinity},
     {maxT,infinity},
     {registered,[lager_sup,lager_event,lager_crash_log,
                  lager_handler_watcher_sup]},
     {included_applications,[]},
     {applications,[kernel,stdlib,goldrush]},
     {env,[{async_threshold_window,50},
           {crash_log_size,10485760},
           {error_logger_hwm,100},
           {error_logger_redirect,true},
           {colored,true},
           {crash_log_count,5},
           {crash_log,"log/crash.log"},
           {crash_log_msg_size,65536},
           {async_threshold,500},
           {crash_log_date,"$D0"},
           {handlers,[{lager_console_backend,...},{...}]},
           {colors,[{...}|...]},
           {included_applications,[]},
           {extra_sinks,...}]},
     {mod,{lager_app,[]}},
     {start_phases,undefined}]}
2> lager:log(info, [], "~s", [[$>|<<"hello world">>]]).
ok
11:04:35.465 [info] FORMAT ERROR: "~s" [[62|<<"hello world">>]]
3> io:format("~s~n", [[$>|<<"hello world">>]]).   
>hello world
ok
@Basho-JIRA Basho-JIRA changed the title lager format doesn't support tail binary as io_list lager format doesn't support tail binary as io_list [JIRA: RIAK-2434] Mar 10, 2016
@Vagabond
Copy link
Member

See if #327 fixes this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants