This function retrieves entries from the system log database and returns them as an array of LogEntry structures. This function provides the ability to filter on date and the log entry text fields of type and message. Use this function when you are looking for specific log entries without knowing the priority or error codes.
Description: This is the starting date for the log entries that you want retrieved. If you do not care about a starting date, use Date.MinValue
Description: This is the ending (latest) date for the log entries that you want retrieved. If you do not care about an ending date, use Date.MaxValue
Description: This is the log entry type, such as "Info" or "Error" - these must EXACTLY match what you are searching for - leave empty to not use this.
Description: This is the entry text to find. This is an exact match field unless wildcards or RegEx (next parameter) is used. To use a wildcard, use the percent (%) character. For example, to match everything that starts with "Super", use "Super%" which will match SuperDuper, Super Cool, and Super Delicious.
Description: When this parameter is TRUE, the previous parameter (mEntry) contains a Regular Expression to be run on the log message field retrieved from the database. For help with Regular Expressions, see Regular-Expressions.info
This example retrieves all log entries from a week ago to today, with a type of "Error":