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
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
+
gelf.debug(message, data);
|
|
54
54
|
} else {
|
|
55
55
|
console.debug(message, data);
|
|
56
56
|
}
|