# goldilogs

> Redirect stdin to log files

Latest version **1.0.3** (published 2022-01-14) · ISC license · 0 weekly downloads

## Install

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

Provides the command `goldilogs`.

## 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.3 |
| Published | 2022-01-14 |
| First published | 2022-01-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Vargas |
| Maintainers | dav793 |
| Keywords | daily log, daily logs, log, logs, winston, node |

## Links

- npm: https://www.npmjs.com/package/goldilogs
- Repository: https://github.com/dav793/goldilogs
- Homepage: https://github.com/dav793/goldilogs#readme
- Issues: https://github.com/dav793/goldilogs/issues
- npm.io page: https://npm.io/package/goldilogs

## Dependencies (2)

- [winston](https://npm.io/package/winston.md) ^3.4.0
- [winston-daily-rotate-file](https://npm.io/package/winston-daily-rotate-file.md) ^4.5.5

## 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.3 (latest) — 2022-01-14
- 1.0.2 — 2022-01-14
- 1.0.1 — 2022-01-14
- 1.0.0 — 2022-01-14

## README

# Goldilogs
Redirect stdin to log files which are rotated daily. 
Is really just a wrapper that allows to direct stdin to winston.

## Install
```bash
npm install goldilogs
```

## Usage
```bash
goldilogs -t {TAG} -p {PATH_TO_LOGS}
```
```bash
echo "Your Message Here" | goldilogs -t {TAG} -p {PATH_TO_LOGS}
```

* `-t`: A tag to identify the log file. 
If a log file with the same tag exists for the current day, will append to that log file. Otherwise will create a new log file.

* `-p`: A path to a directory to store log files into. The path may be absolute or relative. If the directory does not exist, it is created automatically if possible.

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