public static class Redwood.RedwoodChannels extends Object
Redwood.RedwoodChannels
have log and logf methods. Unlike Redwood.log and
Redwood.logf, these do not take channel names since those are specified
inside Redwood.RedwoodChannels
.
Required if you want to use logf with a channel. This follows the
Builder Pattern so Redwood.channels("chanA", "chanB").log("message") is equivalent to
Redwood.channels("chanA").channels("chanB").log("message")Constructor and Description |
---|
RedwoodChannels(Object... channelNames) |
Modifier and Type | Method and Description |
---|---|
Redwood.RedwoodChannels |
channels(Object... moreChannelNames)
Creates a new RedwoodChannels object, concatenating the channels from
this RedwoodChannels with some additional channels.
|
void |
debug(Object... objs) |
void |
err(Object... objs) |
void |
fatal(Object... objs) |
void |
log(Object... obj)
Log a message to the channels specified in this RedwoodChannels object.
|
void |
logf(String format,
Object... args)
Log a printf-style formatted message to the channels specified in this RedwoodChannels object.
|
void |
prettyLog(Object obj)
PrettyLog an object using these channels.
|
void |
prettyLog(String description,
Object obj)
PrettyLog an object with a description using these channels.
|
void |
warn(Object... objs) |
public RedwoodChannels(Object... channelNames)
public Redwood.RedwoodChannels channels(Object... moreChannelNames)
moreChannelNames
- The channel names to also includepublic void log(Object... obj)
obj
- The object to logpublic void logf(String format, Object... args)
format
- The format string for the printf functionargs
- The arguments to the printf functionpublic void prettyLog(Object obj)
public void prettyLog(String description, Object obj)
public void warn(Object... objs)
public void debug(Object... objs)
public void err(Object... objs)
public void fatal(Object... objs)