org.mentalog.interceptor
Interface Interceptor


public interface Interceptor

A interceptor interface that allows you to intercept the byte buffer before it is written to disk or console. For example, you can use this interceptor to implement SYSLOG or a log server. Refer to: http://mentalog.soliveirajr.com for documentations, recipes and more.

Author:
Sergio Oliveira Jr. - sergio.oliveira.jr@gmail.com

Method Summary
 boolean onLogBuffer(ByteBuffer bb, Log level)
          The byte buffer with the log contents about to be written.
 

Method Detail

onLogBuffer

boolean onLogBuffer(ByteBuffer bb,
                    Log level)
The byte buffer with the log contents about to be written.

Parameters:
bb - The byte buffer with the log contents.
level - the level or null if the log intercepted is not a level
Returns:
false if this log should be aborted, in other words, if you don't want this logging to happen.


Copyright © 2013. All Rights Reserved.