We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b543d7 commit b53ede8Copy full SHA for b53ede8
src/logger/logger.js
@@ -31,16 +31,16 @@ class Logger {
31
return this._enabled;
32
}
33
34
- fromError(action, error, data = {}) {
35
- this.error(action, Object.assign(this._getErrorDetails(error), data));
+ customError(severity, action, error, data = {}) {
+ logMethodFactory(severity).bind(this)(action, Object.assign(this._getErrorDetails(error), data));
36
37
38
- warnFromError(action, error, data = {}) {
39
- this.warn(action, Object.assign(this._getErrorDetails(error), data));
+ fromError(action, error, data = {}) {
+ this.customError('error', action, error, data);
40
41
42
- customError(severity, action, error, data = {}) {
43
- logMethodFactory(severity).bind(this)(action, Object.assign(this._getErrorDetails(error), data));
+ warnFromError(action, error, data = {}) {
+ this.customError('warn', action, error, data);
44
45
46
timer() {
0 commit comments