nextcloud-logger
Generic JavaScript logging interface for Nextcloud apps and libraries
Usage
const logger = loggerloggerlogger
Right now the package uses window.console
as log appender and produces the following output
[DEBUG] mail: hello { app: 'mail', uid: 'christoph' }
[ERROR] mail: this should not have happened { app: 'mail', uid: 'christoph', someContext: 13 }
[WARN] mail: it's just a warning, carry on { app: 'mail', uid: 'christoph' }