Methods
setLevel(type, level)
Sets the desired logging level for a particular log type.
Parameters:
Name | Type | Description |
---|---|---|
type | string | | The log type. |
level | Level | | The desired log level. |
- Source
Throws:
if
type
is not astring
.- Type
- TypeError
toJSON() → (non-null) {Object.<string, string>}
Converts this instance to its JSON representation.
- Source
Returns:
The JSON representation of this set of preferences.
- Type:
- Object.<string, string>