Package net.ME1312.Galaxi.Log
Class LogStream
java.lang.Object
net.ME1312.Galaxi.Log.LogStream
Log Stream Class
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
Get the level this stream logs onGet the Logger this stream belongs toGet the prefix this logger usesvoid
print
(char c) Print a Charactervoid
print
(char[] str) Print an Array of Charactersvoid
Print an Objectvoid
Print a Stringvoid
Print an Exceptionvoid
print
(TextElement element) Print a Text Elementvoid
println()
Print an empty linevoid
println
(char... c) Print multiple Characters (separated by a new line)void
println
(char[]... str) Print multiple Arrays of Characters (separated by a new line)void
Print multiple Objects (separated by a new line)void
Print multiple Strings (separated by a new line)void
Print multiple Exceptions (separated by a new line)void
println
(TextElement... element) Print a Text ElementGet this logger as a standard Java PrintStream
-
Method Details
-
toPrimitive
Get this logger as a standard Java PrintStream- Returns:
- Standard Java PrintStream
-
getLogger
Get the Logger this stream belongs to- Returns:
- Logger
-
getPrefix
Get the prefix this logger uses- Returns:
- Logger Prefix
-
getLevel
Get the level this stream logs on- Returns:
- Log Level
-
print
Print an Object- Parameters:
obj
- Object
-
print
Print an Exception- Parameters:
err
- Exception
-
print
Print a Text Element- Parameters:
element
- Text Element
-
print
Print a String- Parameters:
str
- String
-
print
public void print(char[] str) Print an Array of Characters- Parameters:
str
- Character Array
-
print
public void print(char c) Print a Character- Parameters:
c
- Character
-
println
public void println()Print an empty line -
println
Print multiple Objects (separated by a new line)- Parameters:
obj
- Objects
-
println
Print multiple Exceptions (separated by a new line)- Parameters:
err
- Exceptions
-
println
Print a Text Element- Parameters:
element
- Text Element
-
println
Print multiple Strings (separated by a new line)- Parameters:
str
- Objects
-
println
public void println(char[]... str) Print multiple Arrays of Characters (separated by a new line)- Parameters:
str
- Character Arrays
-
println
public void println(char... c) Print multiple Characters (separated by a new line)- Parameters:
c
- Characters
-