Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 910 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 910 Bytes

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