# hinos-log

> Handle log base on log4js for hinos

Latest version **2.0.5** (published 2018-04-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install hinos-log
pnpm add hinos-log
yarn add hinos-log
bun add hinos-log
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2018-04-06 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | doanthuanthanh88@gmail.com |
| Maintainers | doanthuanthanh88 |

## Links

- npm: https://www.npmjs.com/package/hinos-log
- npm.io page: https://npm.io/package/hinos-log

## Dependencies (2)

- [log4js](https://npm.io/package/log4js.md) ^2.5.3
- [hinos-utils](https://npm.io/package/hinos-utils.md) ^2.0.3

## Recent versions

- 2.0.5 (latest) — 2018-04-06
- 2.0.4 — 2018-04-06
- 2.0.3 — 2018-04-06
- 2.0.2 — 2018-04-06
- 2.0.1 — 2018-03-29
- 2.0.0 — 2018-03-29
- 1.0.2 — 2018-02-02
- 1.0.1 — 2018-02-02
- 1.0.0 — 2018-02-02

## README

# hinos-log
Handle log for appliction base on log4js

# Install
```nodejs
npm i hinos-log -S
```

# Examples

### Typescript
```nodejs
import { Server } from 'hinos';
import { route } from 'hinos-route';
import { serve } from 'hinos-serve';
import { Logger } from 'hinos-log/lib/logger';

Logger(AppConfig.log)
Server.use(serve({
    '/upload': path.join(__dirname, '..', 'assets', 'upload')
}));
Server.use(cors());
Server.use(route(path.join(__dirname, 'controller')));
```

### Javascript
```nodejs
const hinos = require("hinos");
const hinosRoute = require("hinos-route");
const hinosServe = require("hinos-serve");
const hinosCors = require("hinos-cors");

hinos.Server.use(hinosServe.serve({
    '/images': path.join(__dirname, 'path to folder which contains resource files'),
    '/files': path.join(__dirname, 'path to folder which contains resource files'),
}));
hinos.Server.use(hinosCors.cors());
hinos.Server.use(hinosRoute.route(path.join(__dirname, 'controller')));
```

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