Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Aug 5, 2017
1 parent bb7cbeb commit 66592f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [unreleased]
### Added
- Koa support
- Express support
- Now is possible add or remove custom log levels
- Property `code` in log object
- New log type: `katch.warn`, `katch.debug`, `katch.trace`, `katch.fatal`

### Changed
- In log object changed property `type` to `level`

## [0.1.1] - 2017-08-02
### Fixed
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ katch.on('log', obj => {
// obj
{
time: '2017-08-02 19:01:46',
type: 'INFO', // INFO or ERROR
level: 'INFO',
code: 104,
hash: 'b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9',
message: 'hello world',
params: { foo: 'bar' },
Expand All @@ -135,6 +136,7 @@ katch.on('log', obj => {
### Configuration
```javascript
const config = {
cosole: true,
logging: true, // if false disable writing log. The event "log" will be invoked anyway
writeFile: { // only server environment
prefix: '', // add a prefix to filename
Expand Down

0 comments on commit 66592f5

Please sign in to comment.