debug.logRecordSerializer

Classes


Public Protected Private

Enumerations

goog.debug.logRecordSerializer.Param_ :
Enumeration of object keys used when serializing a log message.
Constants:
EXCEPTION
No description.
EXCEPTION_TEXT
No description.
LEVEL_NAME
No description.
LEVEL_VALUE
No description.
LOGGER_NAME
No description.
MSG
No description.
SEQUENCE_NUMBER
No description.
TIME
No description.
Code »

Global Functions

goog.debug.logRecordSerializer.getLevel_(namevalue) !goog.debug.Logger.Level
No description.
Arguments:
name : string
The name of the log level to return.
value : number
The numeric value of the log level to return.
Returns: !goog.debug.Logger.Level  Returns a goog.debug.Logger.Level with the specified name and value. If the name and value match a predefined log level, that instance will be returned, otherwise a new one will be created.
code »
goog.debug.logRecordSerializer.parse(s) !goog.debug.LogRecord
Deserializes a JSON-serialized LogRecord.
Arguments:
s : string
The JSON serialized record.
Returns: !goog.debug.LogRecord  The deserialized record.
code »
goog.debug.logRecordSerializer.reconstitute_(o) !goog.debug.LogRecord
Common reconsitution method for for parse and unsafeParse.
Arguments:
o : Object
The JSON object.
Returns: !goog.debug.LogRecord  The reconstituted record.
code »
goog.debug.logRecordSerializer.serialize(record) string
Serializes a LogRecord to a JSON string. Note that any associated exception is likely to be lost.
Arguments:
record : goog.debug.LogRecord
The record to serialize.
Returns: string  Serialized JSON string of the log message.
code »
goog.debug.logRecordSerializer.unsafeParse(s) !goog.debug.LogRecord
Deserializes a JSON-serialized LogRecord. Use this only if you're naive enough to blindly trust any JSON formatted input that comes your way.
Arguments:
s : string
The JSON serialized record.
Returns: !goog.debug.LogRecord  The deserialized record.
code »

Package debug

Package Reference