Class Log
java.lang.Object
me.wiefferink.interactivemessenger.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrint an error to the consolestatic voiderrorIndent(int indent, Object... message)Print a string indented with a certain number of spacesstatic voiderrorIndent(int indent, Collection<String> lines)Print a list of strings to the output with indentationstatic Object[]Indent a messagestatic voidPrint an information message to the consolestatic voidinfoIndent(int indent, Object... message)Print a string indented with a certain number of spacesstatic voidinfoIndent(int indent, Collection<String> lines)Print a list of strings to the output with indentationstatic voidSet the loggerstatic voidPrint a warning to the consolestatic voidwarnIndent(int indent, Object... message)Print a string indented with a certain number of spacesstatic voidwarnIndent(int indent, Collection<String> lines)Print a list of strings to the output with indentation
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
setLogger
Set the logger- Parameters:
newLogger- Logger to use
-
info
Print an information message to the console- Parameters:
message- The message to print
-
warn
Print a warning to the console- Parameters:
message- The message to print
-
error
Print an error to the console- Parameters:
message- The message to print
-
indent
Indent a message- Parameters:
depth- Number of indents to add, one indent is two spacesmessage- Message to indent- Returns:
- Original message with requested number of indents added
-
infoIndent
Print a string indented with a certain number of spaces- Parameters:
indent- The number of indents (each indent is 2 spaces)message- Message to print (will be split on newline to apply indentation)
-
infoIndent
Print a list of strings to the output with indentation- Parameters:
indent- The number of indents (each indent is 2 spaces)lines- The string to print (will be split on newline to apply indentation)
-
warnIndent
Print a string indented with a certain number of spaces- Parameters:
indent- The number of indents (each indent is 2 spaces)message- Message to print (will be split on newline to apply indentation)
-
warnIndent
Print a list of strings to the output with indentation- Parameters:
indent- The number of indents (each indent is 2 spaces)lines- The string to print (will be split on newline to apply indentation)
-
errorIndent
Print a string indented with a certain number of spaces- Parameters:
indent- The number of indents (each indent is 2 spaces)message- Message to print (will be split on newline to apply indentation)
-
errorIndent
Print a list of strings to the output with indentation- Parameters:
indent- The number of indents (each indent is 2 spaces)lines- The string to print (will be split on newline to apply indentation)
-