# logfilename

> log filename, date/time and severity with the winston logging library

Latest version **0.3.0** (published 2019-01-31) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2019-01-31 |
| First published | 2015-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Frederic Heem |
| Maintainers | fheem |
| Keywords | logfilename, log logging winston filename |

## Links

- npm: https://www.npmjs.com/package/logfilename
- Repository: https://github.com/FredericHeem/logfilename
- Issues: https://github.com/FredericHeem/logfilename/issues
- npm.io page: https://npm.io/package/logfilename

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.0
- [winston](https://npm.io/package/winston.md) ^1.0.0

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

- 0.3.0 (latest) — 2019-01-31
- 0.1.3 — 2015-10-15
- 0.1.1 — 2015-05-14
- 0.0.7 — 2015-05-13
- 0.0.6 — 2015-05-12
- 0.0.5 — 2015-05-12
- 0.0.4 — 2015-05-12
- 0.0.3 — 2015-05-12
- 0.0.2 — 2015-05-12
- 0.0.1 — 2015-05-12

## README

> Helper module to log filename, date/time  and colored severity with the [winston logging library](https://github.com/winstonjs/winston)


## Install

```sh
$ npm install --save logfilename
```


## Usage

```js

var options = {
  console: {
    level: 'debug',
    timestamp: true,
    colorize: true
  },
  file: {
    filename: 'log.txt'
  }
};

var log = require('logfilename')(__filename, options);

log.debug('debug message');
log.info('info message');
log.error('error message');
```

## Test

```sh
$ npm test
```

## Continuous integration

* Travis build: [![Build Status](https://travis-ci.org/FredericHeem/logfilename.svg?branch=master)](https://travis-ci.org/FredericHeem/logfilename)

##Code climate

[![Code Climate](https://codeclimate.com/github/FredericHeem/logfilename/badges/gpa.svg)](https://codeclimate.com/github/FredericHeem/logfilename)  [![Test Coverage](https://codeclimate.com/github/FredericHeem/logfilename/badges/coverage.svg)](https://codeclimate.com/github/FredericHeem/logfilename/coverage)

## Npm package

[![npm version](https://badge.fury.io/js/logfilename.svg)](http://badge.fury.io/js/logfilename)

## License

MIT © [Frederic Heem](https://github.com/FredericHeem/)

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