One of two server is missing default logging targets

First of all, I’m sorry, but I haven’t been able to deal with this problem in depth lately.

I have tried it again today.

Empty logging.ps1 file does not lead to the desired result. Logging Targets remains empty.

If I try the following code:

New-PSULoggingTarget -Type File -Level 'Verbose' -Scope User -Feature App -ScriptBlock {
    param($LogEvent, $Message) 
    
    $Message | Out-File \\path\to\my.log
}

the entry appears under Logging Targets, but I get an error message:

image


Has anyone here already had experience with logging.ps1? What does yours look like? Would be very cool if someone here could share some examples :slight_smile: