Logs¶
Logs are an excellent way to keep track of a bot execution and provide insightiful information for operation and monitoring.
BotMaestro offers a very flexible log implementation that is very easy to use and create the log which best fit your use case.
You can create as many custom logs as you desire to better organize your data and manage your automations.
Over the following sections we will show you how to create a log, insert log entries and delete a log.
Important
In the methods below, the automation label
parameter will refer to the log label that was created.
You can find more details in the Logs section.
Creating a Log¶
To create a new Log we need to provide the following information:
- Automation Label (Log Label)
- List of Columns
The SDK provides the Columns
class which helps to create new entries.
A Column
instance holds the following information:
name
: Text to be displayed on the BotMaestro Web Portallabel
: Unique Identifier for this column on this logwidth
: Suggested width in pixels.
Here is how we can create a new Log:
Creating new Log Entries¶
With your shiny new log ready, it is time to create some log entries.
Here is how you can insert new log entries:
Fetch Log Data¶
Retrieving log data is as easy as creating log entries.
The date
argument acts as a filter for the initial date for log to be retrieved.
Note
The date
parameter must use the DD/MM/YYYY
format. If date
is not informed, all data from the log is retrieved.
Downloading as CSV¶
Roadmap
Not yet available.
Deleting an Entire Log¶
If by any reason you need to completely remove the log along with all its entries, you can do so using the command below.
Warning
This operation will erase ALL log history, and it cannot be reverted.