<div dir="ltr">On 11 January 2016 at 18:03, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Ok, for example in case of mpegts library, we need to raise upper, up to sysadmin (user, not a programmer, he cannot use error_logger output) information about status of bitstream like "there are too much errors" or "here is a known list of audio channels".</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">This is why I against of error_logger: it's output is for erlang programmers, not for sysadmins.</div><div class="gmail_extra"><br></div><div class="gmail_extra">application:get_env — isn't it too bad? Or it is just a ets:lookup?</div></div>
<br></blockquote><div><br></div><div>get_env(AppName, Key) -></div><div> case ets:lookup(ac_tab, {env, AppName, Key}) of</div><div><span class="" style="white-space:pre"> </span>[{_, Val}] -> {ok, Val};</div><div><span class="" style="white-space:pre"> </span>_ -> undefined</div><div> end.</div><div><br></div><div>Chandru<br></div><div><br></div></div></div></div>