# ngx-loggly-logger

> Simple library to log to loggly in Angular

Latest version **17.0.0** (published 2024-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-loggly-logger
pnpm add ngx-loggly-logger
yarn add ngx-loggly-logger
bun add ngx-loggly-logger
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 17.0.0 |
| Published | 2024-04-06 |
| First published | 2017-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8.0.0 |
| Dependencies | 1 |
| Unpacked size | 49.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Aaron Newman |
| Maintainers | tgure |
| Keywords | angular, ngx, loggly, loggly logger |

## Links

- npm: https://www.npmjs.com/package/ngx-loggly-logger
- Repository: https://github.com/tgure/ngx-loggly-logger
- Homepage: https://github.com/tgure/ngx-loggly-logger#readme
- Issues: https://github.com/tgure/ngx-loggly-logger/issues
- npm.io page: https://npm.io/package/ngx-loggly-logger

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 17.0.0 (latest) — 2024-04-06
- 10.0.0 — 2020-06-26
- 7.0.3 — 2019-04-26
- 7.0.2 — 2019-04-22
- 7.0.1 — 2019-02-06
- 6.0.0 — 2018-05-18
- 5.0.2 — 2018-02-06
- 5.0.0 — 2017-11-22
- 4.0.6 — 2017-04-25
- 4.0.1 — 2017-04-05
- 4.0.0 — 2017-03-31
- 0.0.21 — 2017-02-19

## README

# ngx-loggly-logger [![Build Status](https://travis-ci.org/Tgure/ngx-loggly-logger.svg?branch=master)](https://travis-ci.org/Tgure/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:

1. __npm install ngx-loggly-logger --save__
2. Add __LogglyService__ import to your __@NgModule__ like example below
    ```js
    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 {}
    ```
3. Use the following in your components, etc.
    ```js

    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');
    ```

---
_Source: https://npm.io/package/ngx-loggly-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
