mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
First commit
This commit is contained in:
10
utils/logger.js
Normal file
10
utils/logger.js
Normal file
@ -0,0 +1,10 @@
|
||||
var logan = require('logan');
|
||||
|
||||
logan.set({
|
||||
error: ['%', 'red'],
|
||||
success: ['%', 'green'],
|
||||
info: ['%', 'grey'],
|
||||
url: [' http://localhost:%/'.grey + '%'.cyan, '.']
|
||||
})
|
||||
|
||||
module.exports = logan
|
Reference in New Issue
Block a user