I only run vanilla servers and go to the server, then logging, logs/latest.log and it has the time (xx:xx:xx).
Is there anyway to the date to that output?
(mm/dd/yyyy xx:xx:xx)
I do not have log4j or anything like that.
Any help would be appreciated.
I do not have log4j or anything like that.
I do have log4j it seems.
Looking around reddit and found that I can add the following to the launch arguments:
Dlog4j.configurationFile=<path to config file.xml>
Where would I place this in mineos?
Ank
July 23, 2025, 10:54am
3
Sorry for late reply.
You would put that in your java arguments box in the webui.
<path to config file.xml>
Needs to be the actual path to your log4j config, i cannot check but in that config there should be a timestamp setting.
The syntax will look something like the following inside your xml.
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
if its properties it will look like the following just make sure to append “properties” to the launch command instead of “.xml”.
appender.console.name=Console
appender.console.layout.type=PatternLayout
appender.console.layout.pattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n