@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.
@@ -32,11 +32,23 @@ class AbstractLoggerAdapter {
32
32
  * @param message string | object
33
33
  * @param level string
34
34
  */
35
- log(...messages) { }
36
- debug(message) { }
37
- warn(message) { }
38
- info(message) { }
39
- error(message) { }
40
- trace(message) { }
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/log",
3
- "version": "0.1.4",
3
+ "version": "1.0.1",
4
4
  "description": "Logger for business apps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",