Update logger settings.
This commit is contained in:
parent
6757f12f6a
commit
076b5fffe6
1 changed files with 4 additions and 2 deletions
|
|
@ -18,9 +18,11 @@ import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation";
|
||||||
import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateAffiliation";
|
import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateAffiliation";
|
||||||
|
|
||||||
export var log: Logger = new Logger({
|
export var log: Logger = new Logger({
|
||||||
displayFunctionName: true,
|
displayFunctionName: false,
|
||||||
|
displayLoggerName: false,
|
||||||
displayFilePath: `hidden`,
|
displayFilePath: `hidden`,
|
||||||
displayLogLevel: true,
|
displayLogLevel: true,
|
||||||
|
minLevel: `silly`,
|
||||||
name: `SecretHitler`,
|
name: `SecretHitler`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -48,7 +50,7 @@ process.on('SIGINT', clean_up);
|
||||||
const io = sio.listen(3000);
|
const io = sio.listen(3000);
|
||||||
|
|
||||||
io.on(`connection`, (socket: sio.Socket) => {
|
io.on(`connection`, (socket: sio.Socket) => {
|
||||||
log.info(`Client connected`);
|
log.silly(`Client connected with id ${socket.id}`);
|
||||||
|
|
||||||
// Game Management
|
// Game Management
|
||||||
socket.on(`HostGame`, (data: HostGame) => HostGame(socket, data));
|
socket.on(`HostGame`, (data: HostGame) => HostGame(socket, data));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue