17.0.0 • Published 1 month ago
ngx-loggly-logger v17.0.0
ngx-loggly-logger
Description
Simple library to log to loggly in Angular
Installation
Version 5.x is for angular 5, 4.x is for angular 4, if you are on earlier versions of angular try version 0.0.21
To install follow this procedure:
- npm install ngx-loggly-logger --save
Add LogglyService import to your @NgModule like example below
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { MyTestApp } from './my-test-app'; import { NgxLogglyModule } from 'ngx-loggly-logger'; @NgModule({ providers: [ ], imports: [ BrowserModule, NgxLogglyModule ], declarations: [ MyTestApp ], bootstrap: [ MyTestApp ] }) export class MyTestAppModule {}
Use the following in your components, etc.
import { LogglyService } from 'ngx-loggly-logger'; constructor(private _logglyService:LogglyService) { } // Optionally you can pass in a protocol you would like to use, by default it will use https:// this.setProtocol('http://'); // Init to set key and tag and sendConsoleErrors boolean this._logglyService.push({ logglyKey: 'Your Loggly Key goes here', sendConsoleErrors : true, // Optional set true to send uncaught console errors tag : 'loggly-logger' });
// To send logs to loggly
this._logglyService.push('Your log message');
```
17.0.0
1 month ago
10.0.0
4 years ago
7.0.3
5 years ago
7.0.2
5 years ago
7.0.1
5 years ago
7.0.0
5 years ago
6.0.0
6 years ago
5.0.2
6 years ago
5.0.1
6 years ago
5.0.0
6 years ago
4.0.6
7 years ago
4.0.5
7 years ago
4.0.4
7 years ago
4.0.3
7 years ago
4.0.2
7 years ago
4.0.1
7 years ago
4.0.0
7 years ago
0.0.27
7 years ago
0.0.26
7 years ago
0.0.25
7 years ago
0.0.24
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago