[erlang-questions] Can I prevent lager from changing to sync mode?
Michael Truog
mjtruog@REDACTED
Mon Jun 17 10:31:53 CEST 2013
If you wanted, there is a logger here which drops messages if the source process log frequency hits every 10 microseconds within a 10 second window. That prevents a misbehaving process from causing excessive logging, such that the misbehaving process is ignored during the rest of the 10 second window.
https://github.com/okeuday/CloudI/blob/master/src/lib/cloudi_core/src/cloudi_logger.erl
On 06/17/2013 01:17 AM, Park, Sungjin wrote:
> I badly want that feature though...
>
>
>
>
> On Fri, Jun 14, 2013 at 2:43 AM, Andrew Thompson <andrew@REDACTED <mailto:andrew@REDACTED>> wrote:
>
> On Wed, Jun 12, 2013 at 10:12:46AM +0900, Park, Sungjin wrote:
> > I want it never fall to sync mode.
> > Just dropping some logs is ok.
>
> Right now, for anything other than error_logger messages, lager will not
> drop any messages, ever. The sync/async modes are just for mailbox size
> regulation.
>
> Andrew
>
>
>
>
> --
> Park, Sungjin
> -------------------------------------------------------------------------------------------------------------------
> Peculiar travel suggestions are dancing lessons from god.
> -- The Books of Bokonon
> -------------------------------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130617/4a43f21e/attachment.htm>
More information about the erlang-questions
mailing list