class StandardJsonLogger extends JsonLogger
- Alphabetic
- By Inheritance
- StandardJsonLogger
- JsonLogger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StandardJsonLogger(slf4jLogger: org.slf4j.Logger, formatter: FastDateFormat, gson: Gson, levelName: String, logOperation: Consumer[String], logWithMarkerOperation: BiConsumer[Marker, String])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exception(key: String, exception: Exception): JsonLogger
Add an exception to the JSON hierarchy.
Add an exception to the JSON hierarchy. The exception will be formatted to include the message and the stacktrace similar to how it is outputted using exception.printStackTrace()
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
field(key: String, value: Supplier): JsonLogger
Add a top level field as a lambda or supplier that is lazily evaluated only if the message is logged.
Add a top level field as a lambda or supplier that is lazily evaluated only if the message is logged. null values will be represented as the json null primitive
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
field(key: String, value: Any): JsonLogger
Add a top level field.
Add a top level field. null values will be represented as the json null primitive
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
formatMessage(level: String): String
- Attributes
- protected[logger]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isIncludeClassName(): Boolean
- def isIncludeLoggerName(): Boolean
- def isIncludeThreadName(): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
json(key: String, jsonElement: Supplier[JsonElement]): JsonLogger
Add an arbitrary JsonElement object to the top level with the given key that is lazily evaluated only if the message is logged
Add an arbitrary JsonElement object to the top level with the given key that is lazily evaluated only if the message is logged
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
json(key: String, jsonElement: JsonElement): JsonLogger
Add an arbitrary JsonElement object to the top level with the given key.
Add an arbitrary JsonElement object to the top level with the given key.
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
list(key: String, list: Supplier[List]): JsonLogger
Add a list to the JSON hierarchy as a lambda or supplier that is lazily evaluated only if the message is logged
Add a list to the JSON hierarchy as a lambda or supplier that is lazily evaluated only if the message is logged
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
list(key: String, list: List): JsonLogger
Add a list to the JSON hierarchy
Add a list to the JSON hierarchy
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
log(): Unit
Log the formatted message
Log the formatted message
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
map(key: String, map: Supplier[Map]): JsonLogger
Add a map to the JSON hierarchy as a lambda or supplier that is lazily evaluated only if the message is logged
Add a map to the JSON hierarchy as a lambda or supplier that is lazily evaluated only if the message is logged
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
map(key: String, map: Map): JsonLogger
Add a map to the JSON hierarchy
Add a map to the JSON hierarchy
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
marker(marker: Marker): JsonLogger
Set the marker to use when generating the log message.
Set the marker to use when generating the log message.
- marker
marker to use when generating the log message. See details in the SLF4J Logger API documents.
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
message(message: Supplier[String]): JsonLogger
Set top level message field as a lambda or supplier that is lazily evaluated only if the message is logged
Set top level message field as a lambda or supplier that is lazily evaluated only if the message is logged
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
def
message(message: String): JsonLogger
Set top level message field.
Set top level message field. Convenience method for .field("message", ... )
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def setIncludeClassName(includeClassName: Boolean): Unit
- def setIncludeLoggerName(includeLoggerName: Boolean): Unit
- def setIncludeThreadName(includeThreadName: Boolean): Unit
-
def
stack(): JsonLogger
Include the stack dump of the current running thread in the log output.
Include the stack dump of the current running thread in the log output. This data will be included in the output under the "stacktrace" key
- Definition Classes
- StandardJsonLogger → JsonLogger
- Annotations
- @Override()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated