RejectedSoftware Forums

Sign up

Log file and line information?

Hi,

I see that the log functions have FILE and LINE as template arguments with default values, but I don't see any information output to the console when running a server.

Is there some setting I'm not getting right?

Cheers,

  • Ali

Re: Log file and line information?

Am 11.02.2019 um 20:25 schrieb aliak:

Hi,

I see that the log functions have FILE and LINE as template arguments with default values, but I don't see any information output to the console when running a server.

Is there some setting I'm not getting right?

Cheers,

  • Ali

The console logger (FileLogger) currently has no mode where file/line
is output. I wanted to add the possibility to set a custom format string
in addition to the current FileLogger.Format enum, but didn't get
around to that, yet.

As an immediate solution, the easiest way would be to take FileLogger
as a template and modify it accordingly + call registerLogger with an
instance of the modified class and setLogLevel(LogLevel.none) to
disable the built-in logger.