Class: Logger
Oracle® Fusion Middleware Oracle JavaScript Extension Toolkit (JET)
12c (12.1.4)
E54107-01
oj.
Logger
A wrapper above different output writers. The default writer is the native browser console.
It also supports a custom writer objects that are compatible with JET logger API.
In order to be compatible with JET logger API the writer should implement the following methods: log(), info(), warn(), error()
Constructor
new Logger()
- Source:
Fields
-
<static, constant> LEVEL_ERROR
-
Log level error
- Source:
-
<static, constant> LEVEL_INFO
-
Log level info
- Source:
-
<static, constant> LEVEL_LOG
-
Log level - general message
- Source:
-
<static, constant> LEVEL_NONE
-
Log level none
- Source:
-
<static, constant> LEVEL_WARN
-
Log level warning
- Source:
Methods
-
<static> error(obj)
-
Writes an error message.
Parameters:
Name |
Type |
Description |
obj |
Object
|
string
|
|
- Source:
-
<static> info(obj)
-
Writes an informational message.
Parameters:
Name |
Type |
Description |
obj |
Object
|
string
|
|
- Source:
-
<static> log(obj)
-
Writes a general message.
Parameters:
Name |
Type |
Description |
obj |
Object
|
string
|
|
- Source:
-
<static> option(key, value)
-
Method for setting and getting logger option/options
Parameters:
Name |
Type |
Argument |
Description |
key |
Object
|
string
|
<optional>
|
|
value |
Object
|
string
|
<optional>
|
|
- Source:
-
<static> warn(obj)
-
Writes a warning message.
Parameters:
Name |
Type |
Description |
obj |
Object
|
string
|
|
- Source: