assetto-corsa-web / accweb

Assetto Corsa Competizione Server Management Tool via Web Interface.
MIT License
142 stars 53 forks source link

Logfiles with Timestamp #259

Open FauconxGame opened 10 months ago

FauconxGame commented 10 months ago

Hey there, this isnt really an issue but more a request, but i was wondering if i can ajust the config that the app puts the timestamp in the Logfiles that are saved? the logfile that gets generated from the acc_server.exe has these but the ones from the site dont. as an example ive attached one that has the timestamps and one that doesnt have them. that would be awesome if that would be possible.

logs_20231004_185136_1696436489.log server.log

pedrofaria commented 9 months ago

I was taking a look in the code and I don't think it's will be so easy...

FauconxGame commented 8 months ago

I was taking a look in the code and I don't think it's will be so easy...

sadge, that would be verry cool if that would have been posible. could it be easier to only copy the finished logfile from acc itself? or how is the logfile getting generated for accweb?

Bloodsaw commented 7 months ago

I was taking a look in the code and I don't think it's will be so easy...

Can you give me an hint in which source file this code is located at? May I could come up with some ideas to implement it, maybe even some pseudo-code, since Go is not in the list of my programming skills. Another thing that I want to look at it how the accserver.exe is invoked and if it's possible to redirect the console output into a buffer to fill a hash table or something.

pedrofaria commented 7 months ago

The problem is how accweb is handling the output o accserver... with the current code, it's not possible...

Well, I was thinking about it and my idea is to introduce events/hooks in accweb...

hooks like that... probably more....

well, from the event instance_log, I can parse it for the live_view and also write the customized log file...

The benefit will be that will open tons of opportunities of new features....

Send me a message on our discord server and we can schedule a call for a deep dive in the code...