Skip to content

ngdevelop-tech/ngx-fancy-logger

Repository files navigation

ngx-fancy-logger

ngx-fancy-logger is a console logger for angular applications. It provides various features like different log levels, display labels, show time etc.

Key Features

  • Different Log Levels (DEBUG=0, INFO=1, WARNING=2, ERROR=3).
  • Log Levels are displayed in Label form with assigned color style or default colors.
  • Show/Hide Time
  • Show/Hide Emoji for each Log Level
  • Show Header on console (color and fontSize configurable)
  • Debug RxJS Observable Stream using debugOperator() operator function
  • Can configure each setting with LoggerConfig in forRoot (which allows us to configure environment specific configuration) or using updateConfig() method.
  • Reset configuration using resetConfig() method
  • Environment Specific Log Level Restriction. eg. if you set logLevel to WARNING, it will only show logs for WARNING and ERROR.
  • Can configure Log Level Colors.
  • Can Disable all logs

Sample Usage Screenshots

Header and Different Log Level Sample Logs

Header and Different Log Levels Sample Logs

Debug RxJS Observable Stream using debugOperator() operator function

Debug RxJS Observable Stream using debugOperator() operator function

Demo

Ngx-Fancy-Logger Demo with All available configuration options

Contribute

All are welcome to contribute to NgxFancyLogger. Contribute with some code, file a bug or improve the documentation.

Contributors ✨✨✨

Thanks goes to these wonderful people.


Ankit Prajapati

Jiten (Jits) Bhagat

Mark a Star ⭐

If you like this library, mark a star ⭐ on ngx-fancy-logger GitHub repository, this will increase our confidence to add new features in this library.