@Override public void onError(Throwable throwable) { Log.Error(KontraktorServlet.this,throwable); } });
/** * override this * @param lastRatePersecond */ protected void statsUpdated(long lastRatePersecond) { if ( print ) Log.Info(this,"***** Stats for "+name+": "+lastRatePersecond+" per second, acc:"+accumulated+" *********"); }
public TCPPublisher(Actor facade, int port) { super(facade, port); Log.Warn(this,"TCPPublisher uses blocking io, its strongly recommended to use TCPNIOPublisher instead."); }
/** * 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 ) {
Log.Info(this, th); Log.Lg.error(this, null, "registry:" + System.identityHashCode(this) + " no actor found for key " + read); throw new UnknownActorException("unknown actor id " + receiverKey); Log.Warn(this,"call to stopped remote actor"); } else { try { Log.Warn(this, "Publisher already deregistered, set error to 'Actor.CONT' in order to signal more messages will be sent. " + read);
Log.Warn(this, th, "from main poll loop"); if ( actors.length > 0 || toAdd.peek() != null ) { if ( SimpleScheduler.DEBUG_SCHEDULING) Log.Lg.warn(this, "zombie dispatcher thread detected. This can be a debugging artifact."); scheduler.tryStopThread(this); Log.Debug(this,"dispatcher thread terminated "+getName()); } finally { activeDispatchers.decrementAndGet();
public DynamicResourceManager(File base, boolean devMode, String prefix, boolean minify, String resPathBase, String ... resourcePath) { super(base, 100); this.devMode = devMode; this.minify = minify; this.lastStartup = new Date(); setPrefix(prefix); dependencyResolver = new DependencyResolver(resPathBase,resourcePath,this); if ( devMode ) Log.Warn(this, "Dependency resolving is running in *DEVELOPMENT MODE*. Turn off development mode to enable bundling+optimization"); else Log.Info(this, "Dependency resolving is running in *PRODUCTION MODE*. Turn on development mode for script-refresh-on-reload and per file javascript debugging"); }
@Override public void debug(String s) { if ( ForwardDebug ) Log.Debug(name, s); }
Log.Warn(this,"out of sequence remote call received"); return false; } else if ( response instanceof Reconnect && facadeActor instanceof SessionResurrector ) { if (resp instanceof RemoteCallEntry == false) { if ( resp != null && ! "SP".equals(resp) ) // FIXME: hack for short polling Log.Lg.error(this, null, "unexpected response:" + resp); // fixme hadResp = true; } else { } catch (UnknownActorException uae) { Log.Warn(this,"Unknown actor id "+((RemoteCallEntry) resp).getReceiverKey()); if (response instanceof RemoteCallEntry == false) { if ( response != null && ! "SP".equals(response)) Log.Lg.error(this, null, "unexpected response:" + response); // fixme return true;
@Override public boolean isInfoEnabled() { return Log.Lg.getSeverity() <= Log.INFO; }
public static void Debug( String msg ) { Lg.debug(null, msg); } public static void Debug( Object source, String msg ) {
public static void Error(Object source, Throwable th, String s) { Lg.error(source,th,s); }
public static void Debug( Object source, Throwable th ) { Lg.debugLong(source, th, null); } public static void Info( Object source, Throwable t, String msg ) {
Log.Info(this, th); Log.Lg.error(this, null, "registry:" + System.identityHashCode(this) + " no actor found for key " + read); throw new UnknownActorException("unknown actor id " + receiverKey); Log.Warn(this,"call to stopped remote actor"); } else { try { Log.Warn(this, "Publisher already deregistered, set error to 'Actor.CONT' in order to signal more messages will be sent. " + read);
Log.Warn(this, th, "from main poll loop"); if ( actors.length > 0 || toAdd.peek() != null ) { if ( SimpleScheduler.DEBUG_SCHEDULING) Log.Lg.warn(this, "zombie dispatcher thread detected. This can be a debugging artifact."); scheduler.tryStopThread(this); Log.Debug(this,"dispatcher thread terminated "+getName()); } finally { activeDispatchers.decrementAndGet();
@Override public void debug(String s, Object o) { if ( ForwardDebug ) Log.Debug(name, s+" "+o); }
Log.Warn(this,"out of sequence remote call received"); return false; } else if ( response instanceof Reconnect && facadeActor instanceof SessionResurrector ) { if (resp instanceof RemoteCallEntry == false) { if ( resp != null && ! "SP".equals(resp) ) // FIXME: hack for short polling Log.Lg.error(this, null, "unexpected response:" + resp); // fixme hadResp = true; } else { } catch (UnknownActorException uae) { Log.Warn(this,"Unknown actor id "+((RemoteCallEntry) resp).getReceiverKey()); if (response instanceof RemoteCallEntry == false) { if ( response != null && ! "SP".equals(response)) Log.Lg.error(this, null, "unexpected response:" + response); // fixme return true;