forked from actions-on-google/actions-on-google-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support configuring loggers as described in issue actions-on-google#413
(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 } });
- Loading branch information
1 parent
eaa9e20
commit b4e7bbe
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters