Skip to content

schirrel/remote-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Logger

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.

RemoteLogger

Install

    npm i @schirrel/remote-logger
    yarn add @schirrel/remote-logger

CDN

https://cdn.jsdelivr.net/gh/schirrel/remote-logger@main/lib/remote-logger.min.js

How it works

Generate your logger id at https://remote-logger.web.app/

Setup it on you app and watch the loggers at Watcher.

Instalation

Usage

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: []})
  • id string is required
  • options object is options, and currenty has only a single option:
    • only array of string that should match console levels from Object.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'])

About

A simple remote view for Consoles and Exceptions

Resources

Stars

Watchers

Forks

Packages

No packages published