-
-
Notifications
You must be signed in to change notification settings - Fork 179
Tables: server.Logs
Sky edited this page Jul 5, 2021
·
3 revisions
This table is responsible for all logging in Adonis.
Chats = {}; --// Chat logs
Joins = {}; --// Join logs
Script = {}; --// Script-related logs
RemoteFires = {}; --// RemoteEvent logs
Commands = {}; --// Command logs
Exploit = {}; --// Exploit logs
Errors = {}; --// Error logs
TempUpdaters = {} --// Temporary functions used as list updaters
Returns a string describing what the provided table is logging.
Possible returns: "Chat", "Join", "Script", "RemoteFire", "Command", "Exploit", "Error", "ServerDetails", "DateTime"
Adds 'Log' to 'LogTable' and automatically adds a timestamp if one is not provided (unless 'Log' is a table and Log.NoTime is true)
Fires service.Events.LogAdded:Fire(TabToType(LogTable), Log, LogTable)
Saves command logs to the datastore as "OldCommandLogs"
These are functions used by lists to update their contents when the user refreshes the list.
Here's the list updater for ChatLogs as an example:
ListUpdaters = {
ChatLogs = function()
return Logs.Chats
end;
}
Start | Guides | Tables |
---|---|---|
Home | Creating a theme | The "Service" Metatable |