public class Slf4jLoggingContext extends Object implements LoggingContext
Constructor and Description |
---|
Slf4jLoggingContext(LoggingContext base) |
Modifier and Type | Method and Description |
---|---|
long |
get(String key,
long defaultValue)
Get a long value, returning the default value if the value is missing or not a long.
|
String |
get(String key,
String defaultValue)
Get a string value, returning the default value if the value is missing.
|
void |
put(String key,
long value)
Put a key/value pair into the logging context, replacing an entry with the same key.
|
void |
put(String key,
String value)
Put a key/value pair into the logging context, replacing an entry with the same key.
|
public Slf4jLoggingContext(LoggingContext base)
public void put(String key, String value)
LoggingContext
put
in interface LoggingContext
public void put(String key, long value)
LoggingContext
put
in interface LoggingContext
public String get(String key, String defaultValue)
LoggingContext
get
in interface LoggingContext
public long get(String key, long defaultValue)
LoggingContext
get
in interface LoggingContext
Copyright © 2017. All rights reserved.