You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set-PSFConfig-Module PSFramework -Name 'Logging.MaxErrorCount'-Value 128-Initialize -Validation "integerpositive"-Handler { [PSFramework.Message.LogHost]::MaxErrorCount =$args[0] } -Description "The maximum number of error records maintained in-memory. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
1
+
Set-PSFConfig-Module PSFramework -Name 'Logging.MaxErrorCount'-Value 128-Initialize -Validation "integerpositive"-Handler { [PSFramework.Message.LogHost]::MaxErrorCount =$args[0] } -Description "The maximum number of error records maintained in-memory. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
3
2
Set-PSFConfig-Module PSFramework -Name 'Logging.MaxMessageCount'-Value 1024-Initialize -Validation "integerpositive"-Handler { [PSFramework.Message.LogHost]::MaxMessageCount =$args[0] } -Description "The maximum number of messages that can be maintained in the in-memory message queue. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
4
3
Set-PSFConfig-Module PSFramework -Name 'Logging.MessageLogEnabled'-Value $true-Initialize -Validation "bool"-Handler { [PSFramework.Message.LogHost]::MessageLogEnabled =$args[0] } -Description "Governs, whether a log of recent messages is kept in memory. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
5
4
Set-PSFConfig-Module PSFramework -Name 'Logging.ErrorLogEnabled'-Value $true-Initialize -Validation "bool"-Handler { [PSFramework.Message.LogHost]::ErrorLogEnabled =$args[0] } -Description "Governs, whether a log of recent errors is kept in memory. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
6
-
Set-PSFConfig-Module PSFramework -Name 'Logging.DisableLogFlush'-Value $false-Initialize -Validation "bool"-Handler { } -Description "When shutting down the process, PSFramework will by default flush the log. This ensures that all events are properly logged. If this is not desired, it can be turned off with this setting."
7
-
#endregion Setting the configuration
5
+
Set-PSFConfig-Module PSFramework -Name 'Logging.DisableLogFlush'-Value $false-Initialize -Validation "bool"-Handler { } -Description "When shutting down the process, PSFramework will by default flush the log. This ensures that all events are properly logged. If this is not desired, it can be turned off with this setting."
Set-PSFConfig-Module PSFramework -Name 'Logging.FileSystem.MaxLogFileAge'-Value (New-TimeSpan-Days 7) -Initialize -Validation "timespan"-Handler { [PSFramework.Message.LogHost]::MaxLogFileAge =$args[0] } -Description "Any logfile older than this will automatically be cleansed. This setting is global."
210
218
Set-PSFConfig-Module PSFramework -Name 'Logging.FileSystem.MessageLogFileEnabled'-Value $true-Initialize -Validation "bool"-Handler { [PSFramework.Message.LogHost]::MessageLogFileEnabled =$args[0] } -Description "Governs, whether a log file for the system messages is written. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
211
219
Set-PSFConfig-Module PSFramework -Name 'Logging.FileSystem.ErrorLogFileEnabled'-Value $true-Initialize -Validation "bool"-Handler { [PSFramework.Message.LogHost]::ErrorLogFileEnabled =$args[0] } -Description "Governs, whether log files for errors are written. This setting is on a per-Process basis. Runspaces share, jobs or other consoles counted separately."
220
+
Set-PSFConfig-Module PSFramework -Name 'Logging.FileSystem.ModernLog'-Value $false-Initialize -Validation "bool"-Handler { [PSFramework.Message.LogHost]::FileSystemModernLog =$args[0] } -Description "Enables the modern, more powereful version of the filesystem log, including headers and extra columns"
212
221
Set-PSFConfig-Module PSFramework -Name 'Logging.FileSystem.LogPath'-Value $script:path_Logging-Initialize -Validation "string"-Handler { [PSFramework.Message.LogHost]::LoggingPath =$args[0] } -Description "The path where the PSFramework writes all its logs and debugging information."
213
222
214
223
Set-PSFConfig-Module LoggingProvider -Name 'FileSystem.Enabled'-Value $true-Initialize -Validation "bool"-Handler { if ([PSFramework.Logging.ProviderHost]::Providers['filesystem']) { [PSFramework.Logging.ProviderHost]::Providers['filesystem'].Enabled =$args[0] } } -Description "Whether the logging provider should be enabled on registration"
0 commit comments