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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
npm-debug.*
dist/
dist/
logs/
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ os:
node_js:
- 'node'
- 'lts/*'
- '7'
- '8'

script:
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ npm start
## TODO

- [x] [Redux](https://github.com/reduxjs/redux)-like style state manage
- [ ] [Log4js](https://github.com/log4js-node/log4js-node)
- [x] [Log4js](https://github.com/log4js-node/log4js-node)
- [ ] [React-router](https://github.com/ReactTraining/react-router)
- [ ] [Typescript](https://github.com/Microsoft/TypeScript)
- [ ] [Webpack-v4](https://github.com/webpack/webpack)
- [x] [Webpack-v4](https://github.com/webpack/webpack)
- [ ] Test

## Changelog

### [2.2.0] / 2019-03-26

- Upgrade webpack to v4
- Add logs using log4js

### [2.1.0] / 2018-12-11

- Refactor Message.js with `useRef` and `useEffect`
Expand Down
15 changes: 15 additions & 0 deletions conf/log.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// documents https://log4js-node.github.io/log4js-node/dateFile.html
module.exports = {
appenders: {
dateFile: {
type: 'dateFile',
filename: 'logs/chat.log',
pattern: 'yyyy-MM-dd', /* roll log in days */
daysToKeep: 30, /* keep log for 30 days */
layout: { type: 'json', separator: ',' }
}
},
categories: {
default: { appenders: ['dateFile'], level: 'trace' }
}
}
Loading