Skip to content

vc-pratik-padia/angular-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to LoggerService

Help to do better logging regardless of environment.

Usage

Import LoggerService in your component and start logging. That's it! As simple as cook Maggi 🚀

import { LoggerService } from 'services/logger.service';

ngOnInit() {
    LoggerService.log('Hi 🙋‍♂️, This is my first log using LoggerService 💪');
    
    this.noopService.all().subscribe({
      next: (result: boolena) {
        this.readyToGo = true;
      },
      error: (error: HttpErrorResponse) => {
        LoggerService.warn('Error while fetching list from noopservice');
        LoggerService.error(error);
      }
    });
}

About

Logger service for angular to logging and debug things regardless of environment

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors