public interface MessageManager
Notes: This method is reserved for internal usage only. Application developer should never call this method directly.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Message message) |
void |
bind(String tag,
String title)
Binds the current message tree to the transaction tagged with
tag. |
void |
end(Transaction transaction)
Be triggered when a transaction ends, whatever it's the root transaction or nested transaction.
|
ClientConfigManager |
getConfigManager() |
String |
getDomain()
get domain
|
Transaction |
getPeekTransaction()
Get peek transaction for current thread.
|
MessageTree |
getThreadLocalMessageTree()
Get thread local message information.
|
boolean |
hasContext()
Check if the thread context is setup or not.
|
boolean |
isCatEnabled()
Check if CAT logging is enabled or disabled.
|
boolean |
isMessageEnabled()
Check if current context logging is enabled or disabled.
|
boolean |
isTraceMode()
Check if CAT trace mode is enabled or disabled.
|
void |
reset()
Do cleanup for current thread environment in order to release resources in thread local objects.
|
void |
setTraceMode(boolean traceMode)
Set CAT trace mode.
|
void |
setup()
Do setup for current thread environment in order to prepare thread local objects.
|
void |
start(Transaction transaction,
boolean forked)
Be triggered when a new transaction starts, whatever it's the root transaction or nested transaction.
|
void add(Message message)
void end(Transaction transaction)
transaction - Transaction getPeekTransaction()
MessageTree getThreadLocalMessageTree()
boolean hasContext()
boolean isMessageEnabled()
boolean isCatEnabled()
boolean isTraceMode()
void setTraceMode(boolean traceMode)
void reset()
void setup()
void start(Transaction transaction, boolean forked)
transaction - forked - void bind(String tag, String title)
tag.tag - tag name of the tagged transactiontitle - title shown in the logviewString getDomain()
ClientConfigManager getConfigManager()
Copyright © 2022. All rights reserved.