Public/ps1/Configuration/Logging/Load-ApprxrLogConfiguration.ps1

<#
        .SYNOPSIS
        Loads the Apprxr log configuration from stored configuration values.
 
        .DESCRIPTION
        Retrieves log hours, log folder, and log retention settings from the configuration and returns them as a hashtable.
 
        .EXAMPLE
        Load-ApprxrLogConfiguration
 
        .NOTES
        Used for accessing log management settings in Apprxr scripts and modules.
#>

function Load-ApprxrLogConfiguration {
        $LogManagement = @{}
        $LogManagement.Hours = Get-ApprxrConfigurationValue -name LogHours
        $LogManagement.LogFolder = Get-ApprxrConfigurationValue -name LogFolder
        $LogManagement.LogRetention = Get-ApprxrConfigurationValue -name LogRetention
        $LogManagement
}