public class Mozlog extends Object implements Serializable
See also https://wiki.mozilla.org/Firefox/Services/Logging#MozLog_application_logging_standard
Constructor and Description |
---|
Mozlog() |
Modifier and Type | Method and Description |
---|---|
static Mozlog |
fromJSON(String input,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Create a new
Mozlog object using a JSON string as input |
Map<String,Object> |
getFields()
Get fields
|
String |
getFieldsAsJson(com.fasterxml.jackson.databind.ObjectMapper mapper)
Get fields as JSON string
|
String |
getHostname()
Get hostname
|
String |
getLogger()
Get logger value
|
Integer |
getPid()
Get pid
|
Integer |
getSeverity()
Get severity integer
|
org.joda.time.DateTime |
getTime()
Get time value
|
Long |
getTimestamp()
Get timestamp
|
String |
getType()
Get type
|
public org.joda.time.DateTime getTime()
public String getHostname()
public String getLogger()
public Long getTimestamp()
public String getType()
public Integer getSeverity()
public Integer getPid()
public String getFieldsAsJson(com.fasterxml.jackson.databind.ObjectMapper mapper)
Returns the Mozlog fields as a JSON string value
mapper
- ObjectMapperCopyright © 2022. All rights reserved.