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

For-Humans-Lab/log-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The next gen RN logging library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published