16.12.2014, 17:45
This is how I personally log for my server. All the important commands (admin commands, namechanges, selling/buying things, advertisements, etc.) are logged on the mysql server, while the rest is just saved normally in server_log.txt. Every 3-4 days we rename the log to the date (so for example today we would rename it to "server_log_dec16_2014.txt" and we move it to the "logs" directory which is located in the home directory (linux). Then we just reload the logs. You can easily search through logs (or any file on linux) using
This is the simplest and most secure way to do it in my opinion because you don't need to give anyone access to your mysql server and you can easily set up group and user permissions on linux.
Код:
fgrep "Whatever you want to search for" server_log.txt