Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,28 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [20.x]

steps:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: npm install && npm install codecov
- run: npm run build --if-present
- run: npm run lint
- run: npm run cov
- run: pnpm install && pnpm install codecov
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

@midwayjs/logger is a log module for midway project.

## Required

Node.js >= v20 since v4.0.0

## Install

```bash
Expand All @@ -21,7 +25,6 @@ const logger = loggers.createLogger('logger', {
```



## Create With Transport

Create logger with console and file transports instance.
Expand Down Expand Up @@ -198,8 +201,6 @@ const logger = loggers.createLogger('consoleLogger', {
```




## Default Logger Options

find more options in [interface](https://github.com/midwayjs/logger/blob/main/src/interface.ts).
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,23 @@
"main": "dist/index",
"typings": "index.d.ts",
"dependencies": {
"dayjs": "^1.10.7",
"safe-stable-stringify": "^2.4.3"
"dayjs": "^1.11.13",
"safe-stable-stringify": "^2.5.0"
},
"devDependencies": {
"@types/jest": "29",
"@types/node": "22.14.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.0.15",
"benchmark": "^2.1.4",
"cross-env": "7.0.3",
"fs-extra": "11.2.0",
"jest": "29",
"fs-extra": "11.3.0",
"jest": "^30.0.4",
"mwts": "1.3.0",
"threads": "1.7.0",
"ts-jest": "29",
"ts-jest": "^29.4.0",
"ts-node": "10.9.2",
"typescript": "5.4.5"
},
"engines": {
"node": ">=10"
"node": ">=20"
},
"files": [
"dist/**/*.js",
Expand Down
Loading
Loading