Logger Component
Component Available | |
Server | Yes |
Client | Yes |
This is the logger class, which will output data to various locations
Required Attributes
Server
Log: function
Client
Log: function
Methods
Server
Log
- Parameters:
component: string, log: string, flags: table, extra: mixed
- Return:
None
- Description: Depending on the provided flag, this will log the input data.
- Flags:
console: boolean
- If true, will print to console.file: boolean
- If true, will print to file.database: boolean
- If true, will save log entry to databse.discord: boolean or table
- If boolean & true, will simply print a basic message to Discord. If table, and provided values set will send an embeded message to Discord.
Discord Flags
color: info, success, warning, error
webhook: Link to webhook if desired to log to non-standard logging channel
Client
Log
- Parameters:
component: string, log: string
- Return:
None
- Description: Will print out log into F8 console.
NOTE: As this is a component defined in a shared file, the client function can also take a flags & extra parameter. These are unused on client.
Events
Server
No server events are fired from this component.
Client
No client events are fired from this component.