Top Description Fields Constructors Methods
org.jruby.util.log

public Class OutputStreamLogger

extends Object
implements Logger
Class Inheritance
All Implemented Interfaces
org.jruby.util.log.Logger
Known Direct Subclasses
org.jruby.util.log.StandardErrorLogger
Imports
java.io.PrintStream, org.joda.time.DateTime

Logger logging to an output (print) stream.
Author
kares

Field Summary

Modifier and TypeField and Description
private boolean
private final String
protected PrintStream

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
debug(String message, Object... args)

Implements org.jruby.util.log.Logger.debug.

public void
public void
debug(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.debug.

public void
error(String message, Object... args)

Implements org.jruby.util.log.Logger.error.

public void
public void
error(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.error.

protected String
public String
public PrintStream
public void
info(String message, Object... args)

Implements org.jruby.util.log.Logger.info.

public void
public void
info(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.info.

public boolean
public void
public void
pack-priv static CharSequence
substitute(final String messagePattern, Object... args)

Message pattern {} substitution.

public void
warn(String message, Object... args)

Implements org.jruby.util.log.Logger.warn.

public void
public void
warn(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.warn.

protected void
write(String message, String level, Object[] args)

protected void
write(String message, String level, Throwable throwable)

protected static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

debugback to summary
private boolean debug
loggerNameback to summary
private final String loggerName
streamback to summary
protected PrintStream stream

Constructor Detail

OutputStreamLoggerback to summary
public OutputStreamLogger(String loggerName)
OutputStreamLoggerback to summary
public OutputStreamLogger(String loggerName, PrintStream stream)

Method Detail

debugback to summary
public void debug(String message, Object... args)

Implements org.jruby.util.log.Logger.debug.

debugback to summary
public void debug(Throwable throwable)

Implements org.jruby.util.log.Logger.debug.

debugback to summary
public void debug(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.debug.

errorback to summary
public void error(String message, Object... args)

Implements org.jruby.util.log.Logger.error.

errorback to summary
public void error(Throwable throwable)

Implements org.jruby.util.log.Logger.error.

errorback to summary
public void error(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.error.

formatMessageback to summary
protected String formatMessage(CharSequence message, String level)
getNameback to summary
public String getName()

Implements org.jruby.util.log.Logger.getName.

getStreamback to summary
public PrintStream getStream()
infoback to summary
public void info(String message, Object... args)

Implements org.jruby.util.log.Logger.info.

infoback to summary
public void info(Throwable throwable)

Implements org.jruby.util.log.Logger.info.

infoback to summary
public void info(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.info.

isDebugEnabledback to summary
public boolean isDebugEnabled()

Implements org.jruby.util.log.Logger.isDebugEnabled.

setDebugEnableback to summary
public void setDebugEnable(boolean debug)

Implements org.jruby.util.log.Logger.setDebugEnable.

setStreamback to summary
public void setStream(PrintStream stream)
substituteback to summary
pack-priv static CharSequence substitute(final String messagePattern, Object... args)

Message pattern {} substitution.

warnback to summary
public void warn(String message, Object... args)

Implements org.jruby.util.log.Logger.warn.

warnback to summary
public void warn(Throwable throwable)

Implements org.jruby.util.log.Logger.warn.

warnback to summary
public void warn(String message, Throwable throwable)

Implements org.jruby.util.log.Logger.warn.

writeback to summary
protected void write(String message, String level, Object[] args)
writeback to summary
protected void write(String message, String level, Throwable throwable)
writeStackTraceback to summary
protected static void writeStackTrace(PrintStream stream, Throwable throwable)