See console.log and its siblings as well as exceptions throw from another place.
Initially develop to help on mobile debug of logs, mostly for Safari or iOS Browser. But you can use as you wish.
Logs may live no more than 3/4 days at our database.
npm i @schirrel/remote-logger yarn add @schirrel/remote-loggerhttps://cdn.jsdelivr.net/gh/schirrel/remote-logger@main/lib/remote-logger.min.jsGenerate your logger id at https://remote-logger.web.app/
Setup it on you app and watch the loggers at Watcher.
If installed with npm you need to import
import '@schirrel/remote-logger/lib/remote-logger';The DebugRemoteLogger function is available globally.
DebugRemoteLogger(id: string , options?: {only: []})idstring is requiredoptionsobject is options, and currenty has only a single option:onlyarray of string that should match console levels fromObject.keys(console):- 'debug', 'error', 'info', 'log', 'warn', 'dir', 'dirxml', 'table', 'trace', 'group', 'groupCollapsed', 'groupEnd', 'clear', 'count', 'countReset', 'assert', 'profile', 'profileEnd', 'time', 'timeLog', 'timeEnd', 'timeStamp', 'context', 'createTask', 'memory']
DebugRemoteLogger("your-generated-id")
// with options
DebugRemoteLogger("your-generated-id", { only: ['info'])
DebugRemoteLogger("your-generated-id", { only: ['warn', 'error'])
DebugRemoteLogger("your-generated-id", { only: ['debug'])
DebugRemoteLogger("your-generated-id", { only: ['error'])