# logs-maker

> Easy way of creating log files

Latest version **1.0.2** (published 2022-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install logs-maker
pnpm add logs-maker
yarn add logs-maker
bun add logs-maker
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-02-04 |
| First published | 2021-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Juan Fernando Gómez Maldonado |
| Maintainers | jf-gm-dev |
| Keywords | logs, errors, temp |

## Links

- npm: https://www.npmjs.com/package/logs-maker
- Repository: git@github.com-dev:jf-gm-dev/log-maker
- Homepage: https://github.com/jf-gm-dev/log-maker#readme
- Issues: https://github.com/jf-gm-dev/log-maker/issues
- npm.io page: https://npm.io/package/logs-maker

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-02-04
- 1.0.1 — 2021-11-18
- 1.0.0 — 2021-11-18

## README

# Logs Maker

### Easy way of creating log files

> Create and update files with a log structure

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save logs-maker
```

## Usage

```js
var log = require('logs-maker');

log.logMessage({
  title: "Error",
  message: "Something gone wrong!",
  directory: './logs',
  filename: 'errors.txt',
});
```

## Properties

| Property         |  Type   |                      Description                       | Default value |
|------------------|---------|--------------------------------------------------------|---------------|
|  title           | STRING  | Can be something distinctive aboute the log            |               |
|  message         | STRING  | Content of the log                                     |               |
|  directory       | STRING  | Directory where the file is located                    |    `"./"`     |
|  filename        | STRING  | Can be something distinctive aboute the log            |  `"log.txt"`  |
|  withId          | BOOLEAN | If `true` it will show a random id for the log         |    `true`     |
|  withDate        | BOOLEAN | If `true` it will show the date of creation of the log |    `true`     |
|  withSeparator   | BOOLEAN | If `true` it will show a separator for the log         |    `true`     |
|  customSeparator | STRING  | Custom separator to replace the default separator      |     `""`      |

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