dl-commons 0.0.2-testing.39 → 0.0.2-testing.40

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dl-commons",
3
3
  "type": "commonjs",
4
- "version": "0.0.2-testing.39",
4
+ "version": "0.0.2-testing.40",
5
5
  "description": "distance learning commons",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@ export class AppLoggerService {
26
26
  //#region Public API
27
27
  public async info(message: string, data?: any) {
28
28
  if (this._isGraylogEnabled) {
29
- this._send(5, message, data);
29
+ gelf.info(message, data);
30
30
  } else {
31
31
  console.info(message, data);
32
32
  }
@@ -34,7 +34,7 @@ export class AppLoggerService {
34
34
 
35
35
  public async error(message: string, data?: any) {
36
36
  if (this._isGraylogEnabled) {
37
- this._send(2, message, data);
37
+ gelf.error(message, data);
38
38
  } else {
39
39
  console.error(message, data);
40
40
  }
@@ -42,7 +42,7 @@ export class AppLoggerService {
42
42
 
43
43
  public async warn(message: string, data?: any) {
44
44
  if (this._isGraylogEnabled) {
45
- this._send(3, message, data);
45
+ gelf.warn(message, data);
46
46
  } else {
47
47
  console.warn(message, data);
48
48
  }
@@ -50,7 +50,7 @@ export class AppLoggerService {
50
50
 
51
51
  public async debug(message: string, data?: any) {
52
52
  if (this._isGraylogEnabled) {
53
- this._send(5, message, data);
53
+ gelf.debug(message, data);
54
54
  } else {
55
55
  console.debug(message, data);
56
56
  }