-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Use case
In the text app we sometimes need very detailed logging. Think several lines of debug logging per keystroke.
Currently we have some logging statements commented out that we enable then.
But if they were always enabled that would spam the logs too much.
Would be nice to have this build into the logger.
Possible interface
// ExampleService.ts in the text app
const logger = getLoggerBuilder().setApp('text')... .build()
const debug = logger.createOptionalDebugLogger('ExampleService')
...
service.on('update', (update) => debug('received update', { update }))Usage in the Browser console:
OCA.Logger.debug.text.ExampleService = truePopulating OCA.Logger.debug when the optional debug logger is created would enable auto completion on the browser command line.
Metadata
Metadata
Assignees
Labels
No labels