Private/ModuleState.ps1
# Variables that represent the internal state of the Pslogg module. $_logLevels = @{ Off = 0 Error = 1 Warning = 2 Information = 3 Debug = 4 Verbose = 5 } $_defaultHostTextColor = @{ Error = 'Red' Warning = 'Yellow' Information = 'White' Debug = 'White' Verbose = 'White' } $_defaultCategoryInfo = @{ Progress = @{ IsDefault = $True } Success = @{ Color = 'Green' } Failure = @{ Color = 'Red' } PartialFailure = @{ Color = 'Yellow' } } $_defaultLogConfiguration = @{ LogLevel = 'INFORMATION' MessageFormat = '{Timestamp:yyyy-MM-dd hh:mm:ss.fff} | {CallerName} | {Category} | {MessageLevel} | {Message}' WriteToHost = $True HostTextColor = $_defaultHostTextColor LogFile = @{ Name = 'Results.log' IncludeDateInFileName = $True Overwrite = $True } CategoryInfo = $_defaultCategoryInfo } $_defaultTimestampFormat = 'yyyy-MM-dd hh:mm:ss.fff' $_logConfiguration = @{} $_messageFormatInfo = @{} $_logFilePath = '' $_logFileOverwritten = $False |