@quatrain/log 0.1.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AbstractLoggerAdapter.js +18 -6
- package/package.json +1 -1
|
@@ -32,11 +32,23 @@ class AbstractLoggerAdapter {
|
|
|
32
32
|
* @param message string | object
|
|
33
33
|
* @param level string
|
|
34
34
|
*/
|
|
35
|
-
log(...messages) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
log(...messages) {
|
|
36
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
37
|
+
}
|
|
38
|
+
debug(message) {
|
|
39
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
40
|
+
}
|
|
41
|
+
warn(message) {
|
|
42
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
43
|
+
}
|
|
44
|
+
info(message) {
|
|
45
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
46
|
+
}
|
|
47
|
+
error(message) {
|
|
48
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
49
|
+
}
|
|
50
|
+
trace(message) {
|
|
51
|
+
throw new Error(`This method needs to be implemtend in child class`);
|
|
52
|
+
}
|
|
41
53
|
}
|
|
42
54
|
exports.AbstractLoggerAdapter = AbstractLoggerAdapter;
|