Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed Apr 30, 2020
1 parent 2a64d07 commit ab6549f
Show file tree
Hide file tree
Showing 3 changed files with 1,555 additions and 3 deletions.
8 changes: 6 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var Logsene = require('../lib/index.js')

var winston = require('winston')
const {createLogger, format} = require('winston')
const { createLogger, format } = require('winston')

// example for custom rewriter, e.g. add myServerIp field to all logs
var myServerIp = '10.0.0.12'
Expand Down Expand Up @@ -56,6 +56,10 @@ process.on('SIGINT', function () {
})

server.listen(PORT, function () {
// Callback triggered when server is successfully listening. Hurray!
// Callback triggered when server is successfully listening. Hurray!
console.log('Server listening on: http://localhost:%s', PORT)

setInterval(() => {
logger.info('Tick Tock')
}, 3000)
})
Loading

0 comments on commit ab6549f

Please sign in to comment.