Get objects representing Strapper logs from a database.
Gets the Strapper logs from the <scriptname>_logs
table with a minimum log level of 'Information'.
Get-StrapperLog
Gets the Strapper logs from the <scriptname>_logs
table with a minimum log level of 'Error'.
Get-StrapperLog -MinimumLevel 'Error'
Gets the Strapper logs from the <scriptname>_MyCustomLogTable
table with a minimum log level of 'Fatal'.
Get-StrapperLog -MinimumLevel 'Fatal' -TableName 'MyCustomLogTable'
Parameter | Required | Default | Type | Description |
---|---|---|---|---|
MinimumLevel |
False | information | string | The minimum log level to gather from the table. |
TableName |
False | $StrapperSession.LogTable |
string | The name of the table to retrieve logs from. |
DataSource |
False | $StrapperSession.DBPath |
string | The target SQLite datasource to use. Defaults to Strapper's Strapper.db . |
Highest --- Fatal
Error
Warning
Information
Debug
Lowest --- Verbose
[System.Collections.Generic.List[StrapperLog]] - A list of logs from the table.