public final class NLogContextImpl extends Object implements NLogContext
| Modifier and Type | Field and Description |
|---|---|
static NLogContext |
BLANK |
| Modifier and Type | Method and Description |
|---|---|
NLog |
getLog() |
NMsgSupplier<NMsg> |
getMessagePrefix() |
NMsgSupplier<NMsg> |
getMessageSuffix() |
Object |
getPlaceholder(String name) |
Map<String,Supplier<?>> |
getPlaceholders() |
boolean |
isBlank() |
NLogContext |
mergedWith(NLogContext other) |
NLogContext |
withLog(NLog logger) |
NLogContext |
withLog(NLogSPI logger) |
NLogContext |
withLog(String name,
NLogSPI logger) |
NLogContext |
withMessagePrefix(NMsg prefix) |
NLogContext |
withMessagePrefix(NMsgSupplier<NMsg> prefix) |
NLogContext |
withMessageSuffix(NMsg suffix) |
NLogContext |
withMessageSuffix(NMsgSupplier<NMsg> suffix) |
NLogContextImpl |
withPlaceholder(String key,
Object value) |
NLogContext |
withPlaceholders(Map<String,?> map) |
NLogContext |
withPlaceholderSupplier(String key,
Supplier<?> supplier) |
NLogContext |
withPlaceholderSuppliers(Map<String,Supplier<?>> map) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofLog, ofLog, ofLog, ofLog, ofLog, ofMessagePrefix, ofMessageSuffix, ofPlaceholder, ofPlaceholders, ofPlaceholderSuppliersfirstNonBlank, firstNonBlank, firstNonBlank, isBlank, isBlank, isBlank, isBlank, isBlank, isNonBlankpublic static final NLogContext BLANK
public Map<String,Supplier<?>> getPlaceholders()
getPlaceholders in interface NLogContextpublic Object getPlaceholder(String name)
getPlaceholder in interface NLogContextpublic NLogContext withLog(NLog logger)
withLog in interface NLogContextpublic NLogContext withLog(NLogSPI logger)
withLog in interface NLogContextpublic NLogContext withLog(String name, NLogSPI logger)
withLog in interface NLogContextpublic NLogContext withMessagePrefix(NMsg prefix)
withMessagePrefix in interface NLogContextpublic NLogContext withMessageSuffix(NMsg suffix)
withMessageSuffix in interface NLogContextpublic NLogContext withMessagePrefix(NMsgSupplier<NMsg> prefix)
withMessagePrefix in interface NLogContextpublic NLogContext withMessageSuffix(NMsgSupplier<NMsg> suffix)
withMessageSuffix in interface NLogContextpublic NLogContext withPlaceholders(Map<String,?> map)
withPlaceholders in interface NLogContextpublic NLogContext withPlaceholderSuppliers(Map<String,Supplier<?>> map)
withPlaceholderSuppliers in interface NLogContextpublic NLogContextImpl withPlaceholder(String key, Object value)
withPlaceholder in interface NLogContextpublic NLogContext withPlaceholderSupplier(String key, Supplier<?> supplier)
withPlaceholderSupplier in interface NLogContextpublic NLogContext mergedWith(NLogContext other)
mergedWith in interface NLogContextpublic NMsgSupplier<NMsg> getMessagePrefix()
getMessagePrefix in interface NLogContextpublic NMsgSupplier<NMsg> getMessageSuffix()
getMessageSuffix in interface NLogContextpublic boolean isBlank()
isBlank in interface NLogContextisBlank in interface NBlankablepublic NLog getLog()
getLog in interface NLogContextCopyright © 2025 vpc open source initiative. All rights reserved.