1.1.0 • Published 3 years ago

@for-humans-lab/log-scope v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Log Scope Driver 🔔

The part of Log Scope App - The Next-Gen React Native logs reading tool

Or just a nine lines of code that power Log Scope App

Usage

Install via npm i @for-humans-lab/log-scope

Logger registration

In some place register a logger with a maningful route (e.g. App > Main page > Maybe interesting):

import { registerLog } from '@for-humans-lab/log-scope'

const log = registerLog(["App", "Main screen", "Maybe interesting"])

It can be initialized dynamically too.

Logging in action

log("Initialized", {
    user: currentUser,
    goods: maybeInterestingGoods
})

...

log("Good clicked")

Results

Detailed explanations are placed in Log Scope App repo