|
|||||||||
| Home >> All >> org >> fluidsynth >> [ api overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.fluidsynth.api
Class Log

java.lang.Objectorg.fluidsynth.api.Log
- public class Log
- extends java.lang.Object
Methods logging output from the application. Planned use is as follows:
- use severe() as appropriate (report unhandled exceptions, etc.)
- use info() for messages to be displayed in progress bars, status bars, etc.
- use config(), fine(), finer() and finest() for debug level output.
Example: Log.fine( this, "debug me");
The default config file will set the level at INFO, and the user will only see warn() and severe() messages on the console unless the logging.properties file in our lib directory is modified to set the level lower. The Status class registers as a handler of INFO level messages, and this is how the info() level messages get into progress bars, etc.
The logger created by this class uses the resource bundle org.fluidsynth.gui.i18n.logBundle to map message keys to internationalized strings.
| Field Summary | |
private java.util.logging.Logger |
logger
|
private static Log |
me
|
| Constructor Summary | |
private |
Log()
Creates new Log |
| Method Summary | |
private static void |
_log(java.util.logging.Level level,
java.lang.Object originator,
java.lang.String message,
java.lang.Throwable thrown)
|
static void |
config(java.lang.Object originator,
java.lang.String message)
Use this one to log debug output. |
static void |
fine(java.lang.Object originator,
java.lang.String message)
Use this one to log debug output. |
static void |
finer(java.lang.Object originator,
java.lang.String message)
Use this one to log debug output. |
static void |
finest(java.lang.Object originator,
java.lang.String message)
Use this one to log debug output. |
java.util.logging.Logger |
getLogger()
Get the logger used by this class. |
static void |
info(java.lang.Object originator,
java.lang.String message)
Use this one to create messages for status panels, progress bars, etc. |
static void |
main(java.lang.String[] args)
Test routine. |
static Log |
onlyInstance()
Return the singleon instance of this class. |
static void |
severe(java.lang.Object originator,
java.lang.String message,
java.lang.Throwable thrown)
Use this to report serious problems the doesn't handle gracefully. |
static void |
warning(java.lang.Object originator,
java.lang.String message)
Use this to issue warnings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
me
private static Log me
logger
private java.util.logging.Logger logger
| Constructor Detail |
Log
private Log()
- Creates new Log
| Method Detail |
onlyInstance
public static final Log onlyInstance()
- Return the singleon instance of this class. Normally only the
static methods of this class will be called, so this might not
be of much use.
getLogger
public final java.util.logging.Logger getLogger()
- Get the logger used by this class.
_log
private static void _log(java.util.logging.Level level, java.lang.Object originator, java.lang.String message, java.lang.Throwable thrown)
severe
public static void severe(java.lang.Object originator, java.lang.String message, java.lang.Throwable thrown)
- Use this to report serious problems the doesn't handle gracefully.
warning
public static void warning(java.lang.Object originator, java.lang.String message)
- Use this to issue warnings.
info
public static void info(java.lang.Object originator, java.lang.String message)
- Use this one to create messages for status panels, progress bars, etc.
config
public static void config(java.lang.Object originator, java.lang.String message)
- Use this one to log debug output.
fine
public static void fine(java.lang.Object originator, java.lang.String message)
- Use this one to log debug output.
finer
public static void finer(java.lang.Object originator, java.lang.String message)
- Use this one to log debug output.
finest
public static void finest(java.lang.Object originator, java.lang.String message)
- Use this one to log debug output.
main
public static void main(java.lang.String[] args)
- Test routine.
|
|||||||||
| Home >> All >> org >> fluidsynth >> [ api overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.fluidsynth.api.Log