Skip to content

hnvcam/teno_debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is a set of utilities for inspecting on specified logger (dart logging) or bloc.

Features

  • Filtering Logger ('package:logging/logging.dart')
  • Filtering Bloc ('package:bloc/bloc.dart')

Getting started

dart pub add dev:teno_debug

Usage

Please make sure that you don't log for sensitive data and check for right condition before calling these utilities For ex: if (!kReleaseMode) { ... }

void main() {
  debugLog(['Class1', 'otherLoggerName']);

  debugBloc([SampleBloc]);
}

class Class1 {
  static final log = Logger('Class1');
}

class SampleBloc extends Bloc {
  SampleBloc(super.initialState);
}

Additional information

TODO:

  • Add tests
  • More information
  • Improvement

About

Simple dart logger management to watch on interested logs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages