Provides easy to use file and mail logging. Documentation of module at https://github.com/echalone/TUN/blob/master/PowerShell/Modules/TUN.Logging/TUN.Logging.md

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name TUN.Logging

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Markus Szumovski


(c) 2020 - Markus Szumovski (ThingsUNeed)

Package Details



Logging Logs LogFile LogFiles Log-File Log-Files Mailing Mails Log-Mail LogMails LogMail Log-Mails Linux Windows Core PowershellCore Powershell-Core PS3 PS4 PS5 PS6 PS7


Get-HasLogDebug Get-HasLogError Get-HasLogHost Get-HasLogInformation Get-HasLogOutput Get-HasLogVerbose Get-HasLogWarning Get-HasMailLogDebug Get-HasMailLogError Get-HasMailLogHost Get-HasMailLogInformation Get-HasMailLogOutput Get-HasMailLogVerbose Get-HasMailLogWarning Get-TUNLoggingVersion Send-Log Set-ForceLogSend Start-Log Start-MailLog Stop-Log Write-DebugLog Write-ErrorLog Write-HostLog Write-InformationLog Write-OutputLog Write-VerboseLog Write-WarningLog


Release Notes

V 1.0.0: Initial version
V 1.0.1: Updated module information
V 1.0.2: Moved markdown link from HelpInfoUri to description
V 1.0.3: Fixed icon link
V 1.0.4: Bumped required module version
V 1.0.5: Bugfixes for logging from console or function, added logging of user
V 1.1.0: Bugfixes for Linux, now compatible with Linux Powershell Core
V 1.1.1: Bugfixing fallback color
V 1.1.2: Updated markdown help and added examples


Version History

Version Downloads Last updated
1.1.2 (current version) 1,248 1/29/2021
1.1.1 74 8/19/2020
1.0.5 16 8/13/2020
1.0.4 123 6/18/2020