public class LogItem extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
ArrayList<LogContent> |
mContents |
int |
mLogTime |
int |
mLogTimeNsPart |
| Constructor and Description |
|---|
LogItem()
Construct a logItem, the log time is set according to the sys time
|
LogItem(int logTime)
Construct a logItem with a certain time stamp
|
LogItem(int logTime,
ArrayList<LogContent> contents)
Construct a logItem with a certain time stamp and log contents
|
LogItem(int logTime,
int logTimeNsPart,
ArrayList<LogContent> contents)
Construct a logItem with a certain time stamp and log contents
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<LogContent> |
GetLogContents()
Get log contents
|
int |
GetTime()
Get log time
|
int |
GetTimeNsPart()
Get log timeNsPart
|
void |
PushBack(LogContent content)
Add a log content to the log
|
void |
PushBack(String key,
String value)
Add a log content key/value pair to the log
|
void |
SetLogContents(ArrayList<LogContent> contents)
set log contents
|
void |
SetTime(int logTime)
Set logTime
|
void |
SetTimeNsPart(int logTimeNsPart)
Set logTimeNsPart
|
String |
ToJsonString() |
public int mLogTime
public int mLogTimeNsPart
public ArrayList<LogContent> mContents
public LogItem()
public LogItem(int logTime)
logTime - log time stamppublic LogItem(int logTime,
ArrayList<LogContent> contents)
logTime - log time stampcontents - log contentspublic LogItem(int logTime,
int logTimeNsPart,
ArrayList<LogContent> contents)
logTime - log time stamplogTimeNsPart - log time nano stampcontents - log contentspublic void SetTime(int logTime)
logTime - log timepublic int GetTime()
public void SetTimeNsPart(int logTimeNsPart)
logTimeNsPart - log time ns partpublic int GetTimeNsPart()
public void PushBack(String key, String value)
key - log content keyvalue - log content valuepublic void PushBack(LogContent content)
content - log contentpublic void SetLogContents(ArrayList<LogContent> contents)
contents - log contentspublic ArrayList<LogContent> GetLogContents()
public String ToJsonString()
Copyright © 2025. All Rights Reserved.