forked from tabarra/txAdmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: updated and cleaned up many docs + minor
- Loading branch information
Showing
13 changed files
with
117 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
### Cache Wiping | ||
### Cache Wiping | ||
|
||
This feature was requested many times and in the end we decided against putting it into txAdmin for the following reasons: | ||
- Its just not necessary with the newest builds of FiveM anymore. | ||
- It can be dangerous considering that not configuring it correctly might end up recursively wiping out important files. | ||
- It can be dangerous considering that not configuring it correctly might end up recursively wiping out important files. | ||
|
||
More info: https://forum.fivem.net/t/why-people-delete-the-server-cache-folder/573851 | ||
More info: https://forum.fivem.net/t/why-people-delete-the-server-cache-folder/573851 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Logging | ||
In version v4.6.0, **txAdmin** added support for persistent logging with file rotate, meaning you will have an organized folder (`txData/<profile>/logs/`) containing your log files up to a maximum size and number of days. | ||
|
||
> Note: player warn/ban/whitelist actions are not just stored in the Admin Logs, but also on the players database. | ||
## Admin Logs: | ||
Contains log of administrative actions as well as some automated ones like server restarts, bans, warns, settings change, live console input and so on. It does not log the user IP unless if from an authentication endpoint. | ||
- Recent Buffer: None. Methods will read the entire file. | ||
- Interval: 7d | ||
- maxFiles: false | ||
- maxSize: false | ||
|
||
## FXServer: | ||
Contains the log of everything that happens in the fxserver console (`stdin`, `stdout`, `stderr`). Any live console input is prefixed with `> `. | ||
- Recent Buffer: 64~128kb | ||
- Interval: 1d | ||
- maxFiles: 7 | ||
- maxSize: 5G | ||
|
||
## Server Logs: | ||
Contains all actions that happen inside the server, for example player join/leave/die, chat messages, explosions, menu events, commands. Player sources are kept in the format `[mutex#id] name` where the mutex is an identifier of that server execution. If you search the file for a `[mutex#id]`, the first result will be the player join with all his identifiers available. | ||
- Recent Buffer: 32k events | ||
- Interval: 1d | ||
- maxFiles: 7 | ||
- maxSize: 10G | ||
|
||
## Console log (not released): | ||
Contains everything that txAdmin prints on the console. | ||
- Recent Buffer: last 500 lines | ||
- Interval: 1d | ||
- maxFiles: 7 | ||
- maxSize: 5G | ||
|
||
## Configuring Log Rotate | ||
The log rotation can be configured, so you can choose to store more or less logs according to your needs. | ||
To configure it, edit your `txData/<profile>/config.json` and add an object inside `logger` with the key being one of `[admin, fxserver, server, console]`. Then add option keys according with the library reference: https://github.com/iccicci/rotating-file-stream#options | ||
|
||
Example: | ||
```jsonc | ||
{ | ||
//... | ||
"logger": { | ||
"fxserver": { | ||
"interval": "1d", | ||
"maxSize": "2G", //max size of rotated files to keep | ||
"maxFiles": 14 //max number of rotated files to keep | ||
} | ||
} | ||
//... | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.