This PR fixes the logging issue on Linux where logging is initialized before `-settingsFile` is parsed causing custom log settings to be ignored. (see ConsoleHost.cs and ManagedEntrance.cs) The PR also includes basic logging tests for Linux and MacOS. PSSyslog.psm1 contains the functions to retrieve selected logged items (based on PowerShell's log id and a timestamp) and Logging.Tests.ps1 contains tests for Linux and MacOS.
10 lines
430 B
PowerShell
10 lines
430 B
PowerShell
@{
|
|
ModuleVersion = '1.0.0'
|
|
GUID = '56b63338-045c-4697-a24b-5a756268c8b2'
|
|
Author = 'PowerShell'
|
|
CompanyName = 'Microsoft Corporation'
|
|
Copyright = 'Copyright (c) Microsoft Corporation. All rights reserved.'
|
|
Description = 'Provides a reader for powershell syslog and os_log entries'
|
|
RootModule = 'PSSysLog.psm1'
|
|
FunctionsToExport = @('Get-PSSysLog', 'Get-PSOsLog', 'Export-PSOsLog', 'Get-OsLogPersistence', 'Set-OsLogPersistence')
|
|
}
|