# es6-logger

> Javascript class for logging of process of javascript code.

Latest version **0.1.1** (published 2018-12-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install es6-logger
pnpm add es6-logger
yarn add es6-logger
bun add es6-logger
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-12-06 |
| First published | 2018-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Frantisek Bachrony |
| Maintainers | brandund |
| Keywords | log, logger, js, es6, javascript, js-log, javascript-log, js-logger, javascript-logger |

## Links

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

## Dependencies (1)

- [gulp-cli](https://npm.io/package/gulp-cli.md) ^2.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-12-06
- 0.1.0 — 2018-12-06

## README

# es6-logger
Package `es6-logger` contains basic class which creates log's with custom information about one process in javascript (return of function for example).

#### How to install package
```bash
npm install es6-logger --save-dev
```

#### Example of usage.
```javascript
const {Logger} = require('es6-logger');
const myLogger = new Logger('myLogger');
const sayHelloWorld = () => {
	try {
		console.log('Hello world!');
		myLogger.log(1, 'We said hello to whole world.');
	} catch(error) {
		myLogger.log(1, 'We did not say hello world.', error);
	}
}

sayHelloWorld();
```

#### Example of log
```javascript
`Info log:
Function createElement() successfully created element. More about element in data of this log.
---
[object Object]`
```

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