public class SoundSystemLogger extends Object
SoundSystemConfig for more
information about changing default settings. If an alternate logger is not
set by the user, then an instance of this base class will be automatically
created by default when the SoundSystem class is instantiated.
| Constructor and Description |
|---|
SoundSystemLogger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
errorCheck(boolean error,
String classname,
String message,
int indent)
Prints the specified message if error is true.
|
void |
errorMessage(String classname,
String message,
int indent)
Prints the classname which generated the error, followed by the error
message.
|
void |
importantMessage(String message,
int indent)
Prints an important message.
|
void |
message(String message,
int indent)
Prints a message.
|
void |
printExceptionMessage(Exception e,
int indent)
Prints an exception's error message.
|
void |
printStackTrace(Exception e,
int indent)
Prints an exception's error message followed by the stack trace.
|
public void message(String message, int indent)
message - Message to print.indent - Number of tabs to indent the message.public void importantMessage(String message, int indent)
message - Message to print.indent - Number of tabs to indent the message.public boolean errorCheck(boolean error,
String classname,
String message,
int indent)
error - True or False.classname - Name of the class checking for an error.message - Message to print if error is true.indent - Number of tabs to indent the message.public void errorMessage(String classname, String message, int indent)
classname - Name of the class which generated the error.message - The actual error message.indent - Number of tabs to indent the message.public void printStackTrace(Exception e, int indent)
e - Exception containing the information to print.indent - Number of tabs to indent the message and stack trace.public void printExceptionMessage(Exception e, int indent)
e - Exception containing the message to print.indent - Number of tabs to indent the message.Copyright © 2017. All rights reserved.