<div dir="ltr">Max, you'd have to explicitly create a new sink and then log messages to it. <div><br></div><div>For example if you set up a sink named `foo' you could send messages into the foo sink by using</div><div><br></div><div>foo:info("~p", [<<"I said foo">>]).</div><div><br></div><div>The `foo' information would get picked up by the parse transformation code and processed at compile time to direct any output (depending on log level or traces active) to a gen_event process named foo_lager_event. Whatever backends happen to be installed in foo_lager_event would do the actual work of processing a message to disk, or the console or syslog, or whatever.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 1:48 AM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Thanks, I've read it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't see how can I tell this exact log mesage to go to audit sink, not to default sink.</div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>