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

Custom Path for outputServerLog #4003

Open
1 task done
Xenius97 opened this issue Feb 6, 2025 · 1 comment
Open
1 task done

Custom Path for outputServerLog #4003

Xenius97 opened this issue Feb 6, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Xenius97
Copy link
Contributor

Xenius97 commented Feb 6, 2025

Is your feature request related to a problem? Please describe.

It would be useful to have an option to specify a custom path when using outputServerLog, allowing logs to be saved in specific subdirectories within the logs folder.

Benefits:

  • Better organization of logs
  • Easier debugging and log management
  • More flexibility in structuring log files

Describe the solution you'd like

outputServerLog("hello world", "anticheat/2025-02-06.log")

This would save the log under logs/anticheat/2025-02-06.log.

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@Xenius97 Xenius97 added the enhancement New feature or request label Feb 6, 2025
@TheNormalnij
Copy link
Member

I suggest you use a custom logger resource for that. So you will have full control over logging info and log format. You can integrate Loki if you want.

Your own logging system can parse this:

exports.logger:Log("Money", "%s sends %d to %s ", playerFrom, count, playerTo)

to string

[Money] [06.02.2025 18:18:30] PlayerNameExample(id: 1337, account: accountNameExample, session_id: 9663)  sends 1000 to SecondPlayerName(id: 999, account: myAccount, session_id: 125)

And you can group logs by tags in different files.

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

No branches or pull requests

2 participants