public class SimpleJsonLayout
A layout rendering structured JSON log lines.
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleJsonLayout.Companion
Factory object used to generate new SimpleJsonLayout.
|
| Modifier and Type | Field and Description |
|---|---|
static SimpleJsonLayout.Companion |
Companion
Factory object used to generate new SimpleJsonLayout.
|
| Constructor and Description |
|---|
SimpleJsonLayout(org.apache.logging.log4j.core.config.Configuration config,
java.util.List<java.lang.String> ignoredPackages)
A layout rendering structured JSON log lines.
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleJsonLayout |
createLayout(org.apache.logging.log4j.core.config.Configuration config,
java.lang.String ignoredStackTracePackages)
Creates a SimpleJsonLayout.
|
java.lang.String |
getContentType() |
java.lang.String |
toSerializable(org.apache.logging.log4j.core.LogEvent event)
Formats the event as a JSON string.
|
public static SimpleJsonLayout.Companion Companion
Factory object used to generate new SimpleJsonLayout.
public SimpleJsonLayout(org.apache.logging.log4j.core.config.Configuration config,
java.util.List<java.lang.String> ignoredPackages)
A layout rendering structured JSON log lines.
public java.lang.String getContentType()
public java.lang.String toSerializable(org.apache.logging.log4j.core.LogEvent event)
Formats the event as a JSON string.
public static SimpleJsonLayout createLayout(org.apache.logging.log4j.core.config.Configuration config, java.lang.String ignoredStackTracePackages)
Creates a SimpleJsonLayout.
config - The plugin configuration.ignoredStackTracePackages - A comma-separated list of packages to be ignored on rendering the stack trace.