trait JsonLogger extends AnyRef
- Alphabetic
- By Inheritance
- JsonLogger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
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()
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
def
json(key: String, jsonElement: JsonElement): JsonLogger
Add an arbitrary JsonElement object to the top level with the given key.
-
abstract
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
-
abstract
def
list(key: String, list: List[_]): JsonLogger
Add a list to the JSON hierarchy
-
abstract
def
log(): Unit
Log the formatted message
-
abstract
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
-
abstract
def
map(key: String, map: Map[_, _]): JsonLogger
Add a map to the JSON hierarchy
-
abstract
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.
-
abstract
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
-
abstract
def
message(message: String): JsonLogger
Set top level message field.
Set top level message field. Convenience method for .field("message", ... )
-
abstract
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
Concrete 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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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