You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/LambdaLog.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ class LambdaLog extends EventEmitter {
117
117
* and emitted through an event. If an `Error` or `Error`-like object is provided for `msg`, it will parse out the message and include the stacktrace in the metadata.
118
118
* @throws {Error} If improper log level is provided.
119
119
* @param {String} level Log level (`info`, `debug`, `warn`, `error` or a [custom log level](#custom-log-levels))
120
-
* @param {Any} msg Message to log. Can be any type, but string or `Error` reccommended.
120
+
* @param {*} msg Message to log. Can be any type, but string or `Error` reccommended.
121
121
* @param {Object} [meta={}] Optional meta data to attach to the log.
122
122
* @param {Array} [tags=[]] Additional tags to append to this log.
123
123
* @return {LogMessage|Boolean} Returns instance of LogMessage or `false` if `level = "debug"` and `options.debug = false`. May also return `false` when a [custom log level](#custom-log-levels) handler function prevents the log from being logged.
@@ -171,8 +171,8 @@ class LambdaLog extends EventEmitter {
171
171
* Generates a log message if `test` is a falsy value. If `test` is truthy, the log message is skipped and returns `false`. Allows creating log messages without the need to
172
172
* wrap them in an if statement. The log level will be `error`.
173
173
* @since 1.4.0
174
-
* @param {Any} test A value which is tested for a falsy value.
175
-
* @param {Any} msg Message to log if `test` is falsy. Can be any type, but string or `Error` reccommended.
174
+
* @param {*} test A value which is tested for a falsy value.
175
+
* @param {*} msg Message to log if `test` is falsy. Can be any type, but string or `Error` reccommended.
176
176
* @param {Object} [meta={}] Optional meta data to attach to the log.
177
177
* @param {Array} [tags=[]] Additional tags to append to this log.
178
178
* @return {LogMessage|Boolean} The LogMessage instance for the log or `false` if test passed.
0 commit comments