/** * override this * @param lastRatePersecond */ protected void statsUpdated(long lastRatePersecond) { if ( print ) Log.Info(this,"***** Stats for "+name+": "+lastRatePersecond+" per second, acc:"+accumulated+" *********"); }
@Override public void debug(String s) { if ( ForwardDebug ) Log.Debug(name, s); }
@Override public void onError(Throwable throwable) { Log.Error(KontraktorServlet.this,throwable); } });
/** * Sets the logging level to the specified value. * * @param level = Log.DEBUG | Log.INFO | Log.WARN | Log.ERROR * @return the previously set severity */ public static int setLevel( int level ) { int oldSeverity = Lg.getSeverity(); Lg.setSeverity(level); return oldSeverity; } public static void Info( Object source, String msg ) {
public TCPPublisher(Actor facade, int port) { super(facade, port); Log.Warn(this,"TCPPublisher uses blocking io, its strongly recommended to use TCPNIOPublisher instead."); }
public static void Debug( String msg ) { Lg.debug(null, msg); } public static void Debug( Object source, String msg ) {
public static void Info( Object source, Throwable t, String msg ) { Lg.infoLong(source,t,msg); } public static void Warn( Object source, Throwable t, String msg ) {
public static void Info( Object source, String msg ) { Lg.info(source, msg); } public static void Info( Object source, Throwable ex ) {
public static void Debug( Object source, Throwable th ) { Lg.debugLong(source, th, null); } public static void Info( Object source, Throwable t, String msg ) {
@Override public void remoteConnected(Actor connected) { Log.Info(ReconnectableRemoteRef.class,"remote connected "+ connected); } };
public static void Error(Object source, Throwable th) { Error(source,th,null); } public static void Error(Object source, Throwable th, String s) {
/** * Sets the logging level to the specified value. * * @param level = Log.DEBUG | Log.INFO | Log.WARN | Log.ERROR * @return the previously set severity */ public static int setLevel( int level ) { int oldSeverity = Lg.getSeverity(); Lg.setSeverity(level); return oldSeverity; } public static void Info( Object source, String msg ) {
@Override public void debug(String s, Object o) { if ( ForwardDebug ) Log.Debug(name, s+" "+o); }
@Override public void tryConnect(ConnectableActor ca) { Log.Info(ReconnectableRemoteRef.class,"try connect "+ca); }
public static void Error(Object source, String s) { Error(source,null,s); } public static void Error(Object source, Throwable th) {
@Override public void debug(String s, Object o, Object o1) { if ( ForwardDebug ) Log.Debug(name, s+" "+o+" "+o1); }
@Override public void remoteConnected(Actor connected) { Log.Info(ReconnectableRemoteRef.class,"remote connected "+ connected); } };
@Override public void debug(String s, Throwable throwable) { if ( ForwardDebug ) Log.Info(name,throwable,s); }