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";
|
||||
|
||||
export var log: Logger = new Logger({
|
||||
displayFunctionName: true,
|
||||
displayFunctionName: false,
|
||||
displayLoggerName: false,
|
||||
displayFilePath: `hidden`,
|
||||
displayLogLevel: true,
|
||||
minLevel: `silly`,
|
||||
name: `SecretHitler`,
|
||||
});
|
||||
|
||||
|
|
@ -48,7 +50,7 @@ process.on('SIGINT', clean_up);
|
|||
const io = sio.listen(3000);
|
||||
|
||||
io.on(`connection`, (socket: sio.Socket) => {
|
||||
log.info(`Client connected`);
|
||||
log.silly(`Client connected with id ${socket.id}`);
|
||||
|
||||
// Game Management
|
||||
socket.on(`HostGame`, (data: HostGame) => HostGame(socket, data));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue