# txt-logger

> A package which gives you an easy way to have your own logs, saved in a .txt file

Latest version **3.1.8** (published 2021-03-26) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.1.8 |
| Published | 2021-03-26 |
| First published | 2021-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kunah |
| Maintainers | kunah |
| Keywords | Log, txt, txt-logger, custom log, log |

## Links

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

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) 0.0.1-security

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

- 3.1.8 (latest) — 2021-03-26
- 3.1.7 — 2021-01-28
- 3.0.7 — 2021-01-28
- 3.0.6 — 2021-01-28
- 3.0.5 — 2021-01-24
- 3.0.4 — 2021-01-24
- 3.0.3 — 2021-01-24
- 3.0.2 — 2021-01-24
- 3.0.1 — 2021-01-24
- 3.0.0 — 2021-01-24
- 2.0.2 — 2021-01-24
- 2.0.1 — 2021-01-24
- 2.0.0 — 2021-01-24
- 1.1.2 — 2021-01-23
- 1.1.1 — 2021-01-23
- … 2 more at https://npm.io/package/txt-logger/versions

## README

## Installation

### Install it using **npm** :
```
$ npm install txt-logger
```

### Actually not available with **yarn**

## Getting started 

### Import the module in your code with the following line :
```javascript
const txt-logger = require('txt-logger');
```

## Usage

### Create your own log, with the **date** (automatically set), the **title** (required) and your **log** (required) and the path (required) :
```javascript
txt-logger.log({title : "your log's title here", log : "your log's content here", path : "path_to_your_log"}, (err) =>{
    console.log(err)
    })
```

### Search if your log contains a value, with the **path** (required), and the value you want to search :
```javascript
txt-logger.search({value : "the value you want to search", path : "path_to_your_log"}, (err) =>{
    console.log(err)
})
```

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