public interface BotLogEntryBuilder
BotLogEntry| Modifier and Type | Method and Description |
|---|---|
BotLogEntryBuilder |
append(boolean value)
Appends a boolean value to the builder
|
BotLogEntryBuilder |
append(char ch)
Appends a char value to the builder
|
BotLogEntryBuilder |
append(double value)
Appends a double value to the builder
|
BotLogEntryBuilder |
append(float value)
Appends a float value to the builder
|
BotLogEntryBuilder |
append(int value)
Appends an int value to this builder.
|
BotLogEntryBuilder |
append(long value)
Appends a long value to the builder
|
BotLogEntryBuilder |
append(Object obj)
Appends an object to this builder.
|
BotLogEntryBuilder |
append(String str)
Appends a string to this builder.
|
BotLogEntryBuilder |
append(String format,
Object... objs)
Calls
String.format(String, Object...) and appends the result |
BotLogEntryBuilder |
appendFixedWidthPadLeft(Object obj,
int width,
char padChar)
Appends an object to the builder padding on the left to a fixed width.
|
BotLogEntryBuilder |
appendFixedWidthPadRight(Object obj,
int width,
char padChar)
Appends an object to the builder padding on the right to a fixed length.
|
BotLogEntryBuilder |
appendln(boolean value)
Appends a boolean value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(char ch)
Appends a char value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(double value)
Appends a double value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(float value)
Appends a float value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(int value)
Appends an int value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(long value)
Appends a long value followed by a new line to the builder.
|
BotLogEntryBuilder |
appendln(Object obj)
Appends an object followed by a new line to this builder
|
BotLogEntryBuilder |
appendln(String str)
Appends a string followed by a new line to this builder
|
BotLogEntryBuilder |
appendln(String format,
Object... objs)
Calls
String.format(String, Object...) and appends the result followed by a new line to this builder. |
BotLogEntryBuilder |
appendNewLine()
Appends the new line string to this builder.
|
BotLogEntryBuilder |
appendPadding(int length,
char padChar)
Appends the pad character to the builder the specified number of times.
|
BotLogEntryBuilder |
appendSeparator(char separator)
Appends a separator if the builder is currently non-empty.
|
BotLogEntryBuilder |
appendWhitespaceSeparator()
Appends a whitespace character to this builder.
|
void |
push()
Calls
BotLogger.log(BotLogEntry) to write message to a logging stream |
BotLogEntryBuilder |
trim()
Trims the builder by removing characters less than or equal to a space from the beginning and end.
|
BotLogEntryBuilder |
withException(Throwable exception)
Sets the exception that would be accompanied with this message
|
BotLogEntryBuilder |
withSeverity(BotLogSeverity severity)
Sets the severity level using
BotLogEntry.setSeverity(BotLogSeverity) |
BotLogEntryBuilder appendWhitespaceSeparator()
this, to enable chainingappendSeparator(char)BotLogEntryBuilder appendSeparator(char separator)
separator - the separator to usethis, to enable chainingStrBuilder.appendSeparator(char)BotLogEntryBuilder append(Object obj)
obj - the object to appendthis, to enable chainingStrBuilder.append(Object)BotLogEntryBuilder append(String str)
str - the string to appendthis, to enable chainingStrBuilder.append(String)BotLogEntryBuilder append(String format, Object... objs)
String.format(String, Object...) and appends the resultformat - the format stringobjs - the objects to use in the format stringthis, to enable chainingStrBuilder.append(String, Object...)BotLogEntryBuilder appendNewLine()
this, to enable chainingStrBuilder.appendNewLine()BotLogEntryBuilder append(int value)
value - the value to appendthis, to enable chainingStrBuilder.append(int)BotLogEntryBuilder append(long value)
value - the value to appendthis, to enable chainingStrBuilder.append(long)BotLogEntryBuilder append(float value)
value - the value to appendthis, to enable chainingStrBuilder.append(float)BotLogEntryBuilder append(double value)
value - the value to appendthis, to enable chainingStrBuilder.append(double)BotLogEntryBuilder append(boolean value)
value - the value to appendthis, to enable chainingStrBuilder.append(boolean)BotLogEntryBuilder append(char ch)
ch - the value to appendthis, to enable chainingStrBuilder.append(char)BotLogEntryBuilder appendln(Object obj)
obj - the object to appendthis, to enable chainingStrBuilder.appendln(Object)BotLogEntryBuilder appendln(String str)
str - the string to appendthis, to enable chainingStrBuilder.appendln(String)BotLogEntryBuilder appendln(String format, Object... objs)
String.format(String, Object...) and appends the result followed by a new line to this builder.format - the format stringobjs - the objects to use in the format stringthis, to enable chainingStrBuilder.appendln(String, Object...)BotLogEntryBuilder appendln(boolean value)
value - the value to appendthis, to enable chainingStrBuilder.appendln(boolean)BotLogEntryBuilder appendln(char ch)
ch - the value to appendthis, to enable chainingStrBuilder.appendln(char)BotLogEntryBuilder appendln(int value)
value - the value to appendthis, to enable chainingStrBuilder.appendln(int)BotLogEntryBuilder appendln(long value)
value - the value to appendthis, to enable chainingStrBuilder.appendln(long)BotLogEntryBuilder appendln(float value)
value - the value to appendthis, to enable chainingStrBuilder.appendln(float)BotLogEntryBuilder appendln(double value)
value - the value to appendthis, to enable chainingStrBuilder.appendln(double)BotLogEntryBuilder appendPadding(int length, char padChar)
length - the length to append, negative means no appendpadChar - the character to appendthis, to enable chainingStrBuilder.appendPadding(int, char)BotLogEntryBuilder appendFixedWidthPadLeft(Object obj, int width, char padChar)
obj - the object to append, null uses null textwidth - the fixed field width, zero or negative has no effectpadChar - the pad character to usethis, to enable chainingStrBuilder.appendFixedWidthPadLeft(Object, int, char)BotLogEntryBuilder appendFixedWidthPadRight(Object obj, int width, char padChar)
obj - the object to append, null uses null textwidth - the fixed field width, zero or negative has no effectpadChar - the pad character to usethis, to enable chainingStrBuilder.appendFixedWidthPadRight(Object, int, char)BotLogEntryBuilder trim()
this, to enable chainingStrBuilder.trim()BotLogEntryBuilder withSeverity(BotLogSeverity severity)
BotLogEntry.setSeverity(BotLogSeverity)severity - the severity level of BotLogEntrythis, to enable chainingBotLogEntryBuilder withException(Throwable exception)
exception - the Exception which would be accompanied with this messagethis, to enable chainingvoid push()
BotLogger.log(BotLogEntry) to write message to a logging streamCopyright © 2016. All rights reserved.