public final class MsgDispatchSystemOutErr
extends java.lang.Object
MsgDispatcher
capability.
Modifier and Type | Field and Description |
---|---|
LogMessageStream |
cmdlineErr
The output channels to console.
|
LogMessageStream |
cmdlineOut
The output channels to console.
|
LogMessageFile |
fileOutput
It is null when
#MsgDispatchSystemOutErr(String) was called with null. |
static int |
ixMsgOutputFile
Indices to the output channels.
|
static int |
ixMsgOutputStdErr
Indices to the output channels.
|
static int |
ixMsgOutputStdOut
Indices to the output channels.
|
MsgDispatcher |
msgDispatcher
The message dispatcher
|
MsgPrintStream |
printErr
The converter from any output to a message.
|
MsgPrintStream |
printOut
The converter from any output to a message.
|
static MsgDispatchSystemOutErr |
singleton |
private java.util.TimeZone |
timeZoneForFile |
static int |
version
Version, history and license.
|
Modifier | Constructor and Description |
---|---|
private |
MsgDispatchSystemOutErr(java.lang.String msgFiles,
int identStartOut,
int identStartErr,
int sizeNoGroup,
int sizeGroup)
Initializes the redirection of System.out and System.err
|
Modifier and Type | Method and Description |
---|---|
static MsgDispatchSystemOutErr |
create(java.lang.String msgFiles,
int identStartOut,
int identStartErr,
int sizeNoGroup,
int sizeGroup)
Creates a static instance to redirect System.err and System.out
|
public static final int version
MsgPrintStream
to redirect System.out and System.err.
public static final int ixMsgOutputStdOut
public static final int ixMsgOutputStdErr
public static final int ixMsgOutputFile
public final MsgPrintStream printOut
MsgPrintStream.setMsgGroupIdent(String, int, int)
to manipulate the building
of the ident numbers.public final MsgPrintStream printErr
MsgPrintStream.setMsgGroupIdent(String, int, int)
to manipulate the building
of the ident numbers.public final MsgDispatcher msgDispatcher
public final LogMessageFile fileOutput
#MsgDispatchSystemOutErr(String)
was called with null.private final java.util.TimeZone timeZoneForFile
public final LogMessageStream cmdlineOut
public final LogMessageStream cmdlineErr
public static MsgDispatchSystemOutErr singleton
private MsgDispatchSystemOutErr(java.lang.String msgFiles, int identStartOut, int identStartErr, int sizeNoGroup, int sizeGroup)
msgFiles
- A file path. If not null, then all messages will be written to the file additionally to the console.
Note that the MsgDispatcher
can be configured after this constructor to modify the outputs.public static MsgDispatchSystemOutErr create(java.lang.String msgFiles, int identStartOut, int identStartErr, int sizeNoGroup, int sizeGroup)
msgFiles
- A file path. If not null, then all messages will be written to the file additionally to the console.
Note that the MsgDispatcher
can be configured after this constructor to modify the outputs.singleton
too.