Class Log
java.lang.Object
me.wiefferink.interactivemessenger.Log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Print an error to the consolestatic void
errorIndent(int indent, Object... message)
Print a string indented with a certain number of spacesstatic void
errorIndent(int indent, Collection<String> lines)
Print a list of strings to the output with indentationstatic Object[]
Indent a messagestatic void
Print an information message to the consolestatic void
infoIndent(int indent, Object... message)
Print a string indented with a certain number of spacesstatic void
infoIndent(int indent, Collection<String> lines)
Print a list of strings to the output with indentationstatic void
Set the loggerstatic void
Print a warning to the consolestatic void
warnIndent(int indent, Object... message)
Print a string indented with a certain number of spacesstatic void
warnIndent(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)
-