Skip to content

Commit

Permalink
Merge pull request #178 from lannonbr/0.2.3
Browse files Browse the repository at this point in the history
0.2.3
  • Loading branch information
lannonbr authored Feb 16, 2022
2 parents 8e20c27 + ba9103c commit 4129cd6
Show file tree
Hide file tree
Showing 5 changed files with 888 additions and 1,041 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

- Put your changes here...

## 0.2.3

- Dropped Node 10 and Node 12 support
- Updated various dependencies
- Migrated colors to @colors/colors
- Migrated from Travis to GitHub Actions

## 0.2.2

- Fixed bug which caused whitespace at the end of a log to be removed.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Optionally you can pass the logger a set of configs.
- `prefix`: *[String]*: The string that prefixes any log entry. If not set or set to a falsy value (e.g. `null`, an empty string, etc), the prefix will be disabled.
- Default for warnings: `⚠️`.
- Default for errors: ``.
- `color`: *[String]*: The color that the text will be set to using [colors](https://www.npmjs.com/package/colors) npm package. If not set, it will use whatever the default color is for the native type selected.
- `color`: *[String]*: The color that the text will be set to using [@colors/colors](https://www.npmjs.com/package/@colors/colors) npm package. If not set, it will use whatever the default color is for the native type selected.
- Example: Simple custom type example for a new log type called `dbError`:

```json
Expand Down
4 changes: 2 additions & 2 deletions logger.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require('colors')
require('@colors/colors')
const emoji = require('node-emoji')
const util = require('util')
const winston = require('winston')
const colors = require('colors/safe')
const colors = require('@colors/colors/safe')
const defaults = require('./defaults.json')
const { combine, printf } = winston.format

Expand Down
Loading

0 comments on commit 4129cd6

Please sign in to comment.