Is there a way to get the log of the server ?

Hi, I notice that the wordl server display a message when he think that a player is cheating.

I would like to know if there a way to get the all the server log messages using php (or another way).
I notice that the file Server.log contain some logs but not all of them for me the log stop at :

“TrinityCore rev. e86a2c439aa2 2017-12-17 16:45:50 +0100 (master branch) (Win64, RelWithDebInfo, Static) (worldserver-daemon) ready…”

And even if there other logs after it doesn’t record.

So my questions are:

  • is there a way to get the log of the worldserver using a coding language or command ?
    • is there a way to update the Server.log file with the current log message of the server using a coding language or command ?

https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130036/Logging+Configuration

The DB logging had a few quirks iirc.
For example you need to restart for it to work, cant just edit loggers and reload them. (just in case you are trying reloading and things dont seem to work)

Here is an example of DB logging for commands that I got to work before:
Appender.GM=3,1,3
Logger.commands.gm=3,Console GM

The stuff is logged to auth.logs in DB

Rows older than x days are deleted automatically. See worldserver config to tweak that.