Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logfiles with Timestamp #259

Open
FauconxGame opened this issue Nov 11, 2023 · 4 comments
Open

Logfiles with Timestamp #259

FauconxGame opened this issue Nov 11, 2023 · 4 comments

Comments

@FauconxGame
Copy link

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
Copy link
Collaborator

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

@FauconxGame
Copy link
Author

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
Copy link

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
Copy link
Collaborator

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...

  • accweb_started
  • instance_created
  • instance_before_save
  • instance_saved
  • instance_before_delete
  • instance_deleted
  • instance_before_start
  • instance_started
  • instance_before_stop
  • intance_stopped
  • instance_log

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants