Src/Entry/LoggerEntryTrimmed.psm1

using module ..\ILogger.psm1

class LoggerEntryTrimmed: ILoggerEntry
{
    static [ILoggerEntry]yield([String]$text)
    {
        return [ILoggerEntry]@{
            severity = [LoggingEventType]::((Get-PSCallStack)[$true].functionName)
            message = $text.trim()
        }
    }
}