# file_level_logger

> File level log in to system

Latest version **1.1.0** (published 2022-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install file_level_logger
pnpm add file_level_logger
yarn add file_level_logger
bun add file_level_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 | 1.1.0 |
| Published | 2022-01-06 |
| First published | 2021-12-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | idea2code by Hardik |
| Maintainers | hard_miand |
| Keywords | info, error |

## Links

- npm: https://www.npmjs.com/package/file_level_logger
- Repository: https://github.com/mh-i2c/file_level_log
- Homepage: https://github.com/mh-i2c/file_level_log#readme
- Issues: https://github.com/mh-i2c/file_level_log/issues
- npm.io page: https://npm.io/package/file_level_logger

## Dependencies (2)

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

## 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.1.0 (latest) — 2022-01-06
- 1.0.4 — 2022-01-03
- 1.0.3 — 2022-01-03
- 1.0.2 — 2022-01-03
- 1.0.1 — 2021-12-25
- 1.0.0 — 2021-12-23

## README

File level log in to system

## Installing

Using npm:

```bash
$ npm install file_level_logger
```

Using bower:

```bash
$ bower install file_level_logger
```

Using yarn:

```bash
$ yarn add file_level_logger
```

## Important Note
You have to make sure that , you have to use this package before calling and APIs on server.

## Way of Use

### note: CommonJS usage

In order to gain the CommonJS imports with `require()` use the following approach:

```js
const express = require("express");
const server =express(); 
const port =3000 // Entered you port
const fileLog = require("file_level_logger");

//Folder path where you want to store files
const filePath =path.join(__dirname,"./logs")

server.use(fileLog(filepath))
server.listen(port, () => console.log(`listening on port ${port}!`));

```

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