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
{{ message }}
This repository has been archived by the owner on May 28, 2024. It is now read-only.
The ask is for the node.js smarthome client library to support configuring its various loggers (debug, info, warn, error).
The ability to configure the loggers would, for example, allow client applications that use firebase cloud functions to improve substantially the readability of their logs as is shown below.
Currently, one log message coming from this client library appears with multiple log entries in the "firebase cloud functions log console" which impacts readability substantially:
If logging were configurable (PR coming shortly), log messages from this library would have a single log entry, which improves readability tremendously:
The text was updated successfully, but these errors were encountered:
pierredelisle
added a commit
to pierredelisle/actions-on-google-nodejs
that referenced
this issue
Feb 10, 2021
(actions-on-google#413).
With that change, a client application that uses Firebase cloud functions would simply need to do the following to improve substantially the readability of log entries in the cloud functions logs console:
const app = smarthome({
debug: true,
logs: {
debug: functions.logger.debug,
info: functions.logger.info,
// 'warn' maps to 'error' in firebase logs.
// If set to functions.logger.warn, there is no level associated with the log entry.
warn: functions.logger.error,
error: functions.logger.error
}
});
See google-home/smarthome-washer#39 for background information.
The ask is for the node.js smarthome client library to support configuring its various loggers (debug, info, warn, error).
The ability to configure the loggers would, for example, allow client applications that use firebase cloud functions to improve substantially the readability of their logs as is shown below.
Currently, one log message coming from this client library appears with multiple log entries in the "firebase cloud functions log console" which impacts readability substantially:
If logging were configurable (PR coming shortly), log messages from this library would have a single log entry, which improves readability tremendously:
The text was updated successfully, but these errors were encountered: