logrecordserializer.js
No description.

File Location

/goog/debug/logrecordserializer.js


Public Protected Private

Enumerations

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 »

Directory debug

File Reference