public class LogFile
extends java.lang.Object
| Constructor and Description |
|---|
LogFile()
Create a log file object to which log messages can be written.
|
LogFile(java.io.File file)
Create a log file object to which log messages can be written.
|
LogFile(java.io.Writer out)
Create a log file object to which log messages can be written.
|
| Modifier and Type | Method and Description |
|---|---|
void |
log(I18NResourceBundle i18n,
java.lang.String key)
Print a text message to the logfile.
|
void |
log(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object arg)
Print a text message to the workdir logfile.
|
void |
log(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object[] args)
Print a text message to the workdir logfile.
|
public LogFile()
public LogFile(java.io.Writer out)
out - the stream to which to write the messages.public LogFile(java.io.File file)
file - the file to which to write the messages.public void log(I18NResourceBundle i18n, java.lang.String key)
i18n - a resource bundle containing the localized messageskey - a key into the resource bundle for the required messagepublic void log(I18NResourceBundle i18n, java.lang.String key, java.lang.Object arg)
i18n - a resource bundle containing the localized messageskey - a key into the resource bundle for the required messagearg - An argument to be formatted into the specified message.
If this is a Throwable, its stack trace
will be included in the log.public void log(I18NResourceBundle i18n, java.lang.String key, java.lang.Object[] args)
i18n - a resource bundle containing the localized messageskey - a key into the resource bundle for the required messageargs - An array of arguments to be formatted into the specified message.
If the first arg is a Throwable, its stack
trace will be included in the log.Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.