# dbcustomlog

> Custom Logging for my discord bot

Latest version **1.4.0** (published 2017-02-15) · MIT license · 0 weekly downloads

## Install

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

## 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.4.0 |
| Published | 2017-02-15 |
| First published | 2017-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Logan Heinzelman |
| Maintainers | loganrose |
| Keywords | logging, JS, discord, lol, custom, log, bot, success, error |

## Links

- npm: https://www.npmjs.com/package/dbcustomlog
- Repository: https://github.com/Spected/customlog
- Homepage: https://github.com/Spected/customlog#readme
- Issues: https://github.com/Spected/customlog/issues
- npm.io page: https://npm.io/package/dbcustomlog

## Dependencies (1)

- [create-if-not-exist](https://npm.io/package/create-if-not-exist.md) 0.0.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.4.0 (latest) — 2017-02-15
- 1.3.8 — 2017-02-15
- 1.3.7 — 2017-02-15
- 1.3.6 — 2017-02-15
- 1.3.5 — 2017-02-15
- 1.3.4 — 2017-02-15
- 1.3.3 — 2017-02-15
- 1.3.2 — 2017-02-15
- 1.3.0 — 2017-02-15
- 1.1.4 — 2017-02-15
- 1.1.3 — 2017-02-15
- 1.1.2 — 2017-02-15
- 1.1.1 — 2017-02-15
- 1.1.0 — 2017-02-15
- 1.0.1 — 2017-02-15
- … 1 more at https://npm.io/package/dbcustomlog/versions

## README

## Installation
Install the package using  
`npm i dbcustomlog`

To add it as a dependency, use  
`yarn add dbcustomlog` or `npm i -S dbcustomlog`

Once installed, require the package with

```js
const logger = require('dbcustomlog')
const log = new logger()
```

## Usage
Call one of the following functions or shortcuts for different levels of warning.

```js
i or info
s or success
e or error
c or command
w or warn
```

Example Call

```js
log.i(msg)
// Where msg is the message you want to log
```

### File Output
To output to a file, pass the file path as an argument when creating the new class

```js
// Example
const path = require('path')
const log = new logger(path.join(__dirname, 'default.log'))
```

## Examples

```js
// Info
log.i("Log Message")
// Debug
log.s("Log Message")
// Error
log.e("Log Message")
// Verbose
log.c("Log Message")
// Warn
log.w("Log Message")
```

Would Output

```
[INFO]    [01/01/1970 00:00:00] Log Message
[SUCCESS]   [01/01/1970 00:00:00] Log Message
[ERROR]   [01/01/1970 00:00:00] Log Message
[COMMAND] [01/01/1970 00:00:00] Log Message
[WARN]    [01/01/1970 00:00:00] Log Message
```

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