AnandGupta Expert Licensed User Longtime User Jul 9, 2022 #1 I have created simple server, taking guess my number example, Code: Copy srvr.AddHandler("/Server_Log", "Server_Log", False) srvr.AddHandler("/guessmynumber/guess", "GuessMyNumber", False) All fine here. I noted that the B4J server creates log files in "logs" folder like Code: Copy b4j-2022_07_09.request.log b4j-2022_07_07.request.log b4j-2022_07_06.request.log Now the date time are written as GMT +0000. How can I make it to write the date time in IST +5.30 ? For example in image above the time should be 23:58:18
I have created simple server, taking guess my number example, Code: Copy srvr.AddHandler("/Server_Log", "Server_Log", False) srvr.AddHandler("/guessmynumber/guess", "GuessMyNumber", False) All fine here. I noted that the B4J server creates log files in "logs" folder like Code: Copy b4j-2022_07_09.request.log b4j-2022_07_07.request.log b4j-2022_07_06.request.log Now the date time are written as GMT +0000. How can I make it to write the date time in IST +5.30 ? For example in image above the time should be 23:58:18
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2022 #2 Update to v4.01. Code: Copy srvr.LogFormat = $"%{client}a - %u %{dd/MMM/yyyy:HH:mm:ss ZZZ|GMT+5:30}t "%r" %s %O "%{Referer}i" "%{User-Agent}i""$ Should be set before the call to Server.Start. Upvote 0
Update to v4.01. Code: Copy srvr.LogFormat = $"%{client}a - %u %{dd/MMM/yyyy:HH:mm:ss ZZZ|GMT+5:30}t "%r" %s %O "%{Referer}i" "%{User-Agent}i""$ Should be set before the call to Server.Start.
AnandGupta Expert Licensed User Longtime User Jul 10, 2022 #3 Erel said: Update to v4.01. Click to expand... Thanks @Erel , but this requires Java 11+, but I want to keep using Java 8 for benefit of "java -jar .." execution. Can I get it with Java 8 ? Upvote 0
Erel said: Update to v4.01. Click to expand... Thanks @Erel , but this requires Java 11+, but I want to keep using Java 8 for benefit of "java -jar .." execution. Can I get it with Java 8 ?
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2022 #4 AnandGupta said: but I want to keep using Java 8 for benefit of "java -jar .." execution Click to expand... This also works with Java 11+. It only becomes more complicated with UI apps. Upvote 0
AnandGupta said: but I want to keep using Java 8 for benefit of "java -jar .." execution Click to expand... This also works with Java 11+. It only becomes more complicated with UI apps.