Skip to content

Commit

Permalink
app: replace lib/logger.js with daily-file-writer
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Mar 31, 2016
1 parent 00f32d7 commit 6e49074
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 76 deletions.
10 changes: 5 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Router = require('./lib/router')
const Panels = require('./lib/panels')
const utils = require('./lib/utils')
const About = require('./lib/about')
const Logger = require('./lib/logger')
const Logger = require('daily-file-writer')
const Notifications = require('./lib/notifications')

module.exports = window.App = App
Expand Down Expand Up @@ -548,7 +548,7 @@ App.prototype.checkConnLogging = function checkConnLogging(conn) {
const l = new Logger({
path: fp
})
l._createStream()
l.open()
this.loggers.set(conn, l)
}
} else if (!enabled && logger) {
Expand All @@ -566,7 +566,7 @@ App.prototype.checkConnLogging = function checkConnLogging(conn) {
const l = new Logger({
path: fp
})
l._createStream()
l.open()
this.loggers.set(conn, l)
}
}
Expand All @@ -589,7 +589,7 @@ App.prototype.checkChannelLogging = function checkChannelLogging(chan) {
const l = new Logger({
path: fp
})
l._createStream()
l.open()
this.loggers.set(chan, l)
}
} else if (!enabled && logger) {
Expand All @@ -606,7 +606,7 @@ App.prototype.checkChannelLogging = function checkChannelLogging(chan) {
const l = new Logger({
path: fp
})
l._createStream()
l.open()
this.loggers.set(chan, l)
}
}
Expand Down
71 changes: 0 additions & 71 deletions lib/logger.js

This file was deleted.

0 comments on commit 6e49074

Please sign in to comment.