1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

redirected logs to files

This commit is contained in:
Massimo Candela
2019-06-30 01:42:58 +02:00
parent 8e133351a4
commit bae0bca63c
7 changed files with 32 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
import logger from '../logger';
export default class Monitor {
@@ -131,6 +132,11 @@ export default class Monitor {
this.pubSub.publish(this.channel, alert);
logger.log({
level: 'verbose',
message: alert.message
});
return alert;
}