Event tracer.
Modifiers | Name | Description |
---|---|---|
static String |
LOGFMT_VERSION |
|
protected static boolean |
comma |
|
protected static com.google.gson.Gson |
gson |
|
protected static int |
nest |
|
protected static OutputStream |
trace |
|
protected static TimestampProvider |
tsp |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
begin(String name) Marks the start of an event group. |
|
static void |
disable() Disables trace. |
|
static void |
enable(String filename) Enables trace to file. |
|
static void |
enable(File file) Enables trace to file. |
|
static boolean |
enabled() Checks if trace is currently enabled. |
|
static void |
end() Marks the end of an event group. |
|
static void |
setTimestampProvider(TimestampProvider tp) Sets the timestamp provider for trace event time. |
|
static void |
trace(String component, Message stimulus, Message response, Object info) Log event trace. |
Marks the start of an event group.
name
- name of the event group.Disables trace.
Enables trace to file.
filename
- filename to write trace to.Enables trace to file.
file
- file to write trace to.Checks if trace is currently enabled.
Marks the end of an event group.
Sets the timestamp provider for trace event time.
tp
- timestamp provider, or null to use system time.