# @veams/plugin-logger

> The VeamsLogger plugin disables `console` logs by default. You can provide parameters (`?devmode`) in the URL to show the logs in your console.

Latest version **1.3.1** (published 2018-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @veams/plugin-logger
pnpm add @veams/plugin-logger
yarn add @veams/plugin-logger
bun add @veams/plugin-logger
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2018-02-22 |
| First published | 2018-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sebastian Fitzner |
| Maintainers | andy-gutsche, sebastian-fitzner |
| Keywords | veams, veams-plugin |

## Links

- npm: https://www.npmjs.com/package/@veams/plugin-logger
- Repository: https://github.com/veams/plugin-logger
- Homepage: http://veams.org/
- Issues: https://github.com/veams/plugin-logger/issues
- npm.io page: https://npm.io/package/@veams/plugin-logger

## Dependencies (1)

- [@veams/helpers](https://npm.io/package/@veams/helpers.md) ^1.2.5

## Recent versions

- 1.3.1 (latest) — 2018-02-22
- 1.3.0 — 2018-02-20

## README

# VeamsLogger plugin

The VeamsLogger plugin disables `console` logs by default. You can provide parameters (`?devmode`) in the URL to show the logs in your console.

Furthermore it gives you the possibility to add a logger (`?logger`) which will be displayed on other devices.

The plugin is session based, means you only need to add the parameter once you started your project.

TypeScript is supported. 

## Installation

### NPM

``` bash 
npm install @veams/plugin-logger --save
```

### Yarn 

``` bash 
yarn add @veams/plugin-logger
```

## Usage

```js
import Veams from '@veams/core';
import VeamsLogger from '@veams/plugin-logger';

// Intialize core of Veams
Veams.initialize(() => {
    // Add plugins to the Veams system
    Veams.use(VeamsLogger, {
        devmodeParam: 'debug', // default: 'devmode'
        loggerParam: 'logs' // default: 'logger'
    });
});
```

### Options

- _devmodeParam_ {`String`} [`'devmode'`] - You can override the url param key for the devmode which shows the logs in console.
- _loggerParam_ {`String`} [`'logger'`] - You can override the url param key for the logger which gets appended to the body.

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