public interface MessageProducer
| Modifier and Type | Method and Description |
|---|---|
void |
logError(String message,
Throwable cause)
Log an error.
|
void |
logError(Throwable cause)
Log an error.
|
void |
logEvent(String type,
String name)
Log an event in one shot with SUCCESS status.
|
void |
logEvent(String type,
String name,
String status,
String nameValuePairs)
Log an event in one shot.
|
Transaction |
newTransaction(String type,
String name)
Create a new transaction with given type and name.
|
void logError(Throwable cause)
cause - root cause exceptionvoid logError(String message, Throwable cause)
cause - root cause exceptionvoid logEvent(String type, String name)
type - event typename - event namevoid logEvent(String type, String name, String status, String nameValuePairs)
type - event typename - event namestatus - "0" means success, otherwise means error codenameValuePairs - name value pairs in the format of "a=1&b=2&..."Transaction newTransaction(String type, String name)
type - transaction typename - transaction nameCopyright © 2018 Ctrip, Inc.. All rights reserved.