# soklogs

> A logger who create, write and manage logs files.

Latest version **1.0.6** (published 2018-04-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install soklogs
pnpm add soklogs
yarn add soklogs
bun add soklogs
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2018-04-18 |
| First published | 2018-04-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sokkar |
| Maintainers | sokkar |
| Keywords | logger, sokkar, logs, sok, soklogs, SokLogs |

## Links

- npm: https://www.npmjs.com/package/soklogs
- Repository: https://github.com/Shiroys/SokLogs
- Homepage: https://github.com/Shiroys?tab=repositories
- Issues: https://github.com/Shiroys/SokLogs/issues
- npm.io page: https://npm.io/package/soklogs

## 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

- 1.0.6 (latest) — 2018-04-18
- 1.0.5 — 2018-04-18
- 1.0.4 — 2018-04-18
- 1.0.3 — 2018-04-17
- 1.0.2 — 2018-04-17
- 1.0.1 — 2018-04-17
- 1.0.0 — 2018-04-17

## README

## Installation

#### Using npm

> $ npm i -g npm <br/>
$ npm i --save soklogs

#### In node js

> // Load the logger class <br/>
var SokLogs = require('soklogs'); <br/><br/>
// Init logger <br/>
var config = {
    "filename": "logs.log",
    "path": "/Users/Test/Desktop",
    "date": true,
    "service": "Test",
    "size": 500
} <br/>
var logger = new SokLogs(config); <br/><br/>
// Use logger <br/>
logger.debug("I'm a test log", {"test": "log"}, 200);

#### Config documentation

- Filename: String(Required) (Name of the file).
- Path: String(Required) (Path of the file).
- Date: Boolean(Optional) (Enable or disable date display).
- Service: String(Optional) (A string who name your service.).
- Size: Int(Optional) (Specify max size of logs files in MO).

#### Severity

- Debug (Blue color. Example: logger.debug(logs)).
- Error (Red color. Example: logger.error(logs)).
- Info (Green color. Example: logger.info(logs)).
- Warn (Magenta color. Example: logger.warn(logs)).

#### Screen

![screen](https://raw.githubusercontent.com/Shiroys/images/master/screen01.png)

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