Advanced configuration
Learn how to configure AstridLogger
Last updated
Learn how to configure AstridLogger
Last updated
Here is a basic example of using a custom configuration to change log colors.
You can easily implement Discord into your applications using AstridLogger! But, how?
Create a "discord" object within your configuration, and then fill in what you will use. In order to use the Discord integration, make sure to set enabled to true!
You can swap them out for success, or for error as well.
You no longer have to implement Twilio yourself, as AstridLogger can handle it!
Create a "twilio" object within your configuration, and fill in the following values
The Twilio support also includes "errorContent", as shown within the Discord configuration! If no errorContent is specified, it will default to the text provided within the log statement.
Now, how does one get actual information? It's relatively easy.
Variables are surrounded by double braces ({{example}}) to distinguish them from other text, and they can be used in any "content" option.
file (Name of the file that executed the log)
path
content
time (Formatted time using DayJS)
unix
used_memory
total_memory
free_memory
You can disable a certain integration for a specific log by adding the following to your log options
Example below: