Create server log

Create server log


Hey guys

I run my own FiveM server, which I host myself on Linux. I did everything according to instructions, but can’t find a log.

How do I create a log file that logs every session and saves it after days?

Thanks in advance!

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Moved to the correct area as this is not Client related.

| tee "logs/log_"$(date +"%m-%d-%Y-%H%M")".txt"

Didn’t fully test it but adding this to the end of the exec should log all output to logs/log_$(date)
Make sure you create the logs folder as well.

how exactly do I use this line?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.