Action.Logging

2.0.1

Enhanced PowerShell logging module with async support. Provides severity-based logging with automatic file management, color-coded console output, and high-performance asynchronous logging capabilities for PowerShell scripts and automation.

Minimum PowerShell version

5.1

Installation Options

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

Install-Module -Name Action.Logging -RequiredVersion 2.0.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Action.Logging -Version 2.0.1

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

Owners

Copyright

(c) 2025 Gonzalo More. Licensed under MIT License.

Package Details

Author(s)

  • Gonzalo More

Tags

Logging PowerShell Automation Async Console FileManagement

Functions

Write-EnhancedLog Clear-OldLog Start-AsyncLogger Stop-AsyncLogger Write-EnhancedLogAsync Set-LoggingConsoleOutput Set-LoggingFileOutput Set-LogRetention Set-LogScriptName Set-LogPath Get-LoggingStatus

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

Version 2.0.1: Critical bug fixes - Fixed async console color mapping (colors now work correctly), fixed sync current log file tracking (Get-LoggingStatus now shows current file), fixed SyncHash cleanup (properly nulled after Stop-AsyncLogger). All 101 tests pass. No breaking changes. Version 2.0.0: Major reliability and validation improvements - Enhanced all internal functions with comprehensive error handling and defensive programming. Strengthened Initialize-LogPath with path validation, permission checks, and Windows path length limits. Added robust validation to Format-LogMessage and improved call stack analysis in Initialize-EffectiveScriptName.

FileList

Version History

Version Downloads Last updated
2.4.0 143 8/31/2025
2.2.3 63 8/31/2025
2.2.2 6 8/31/2025
2.2.1 6 8/31/2025
2.2.0 12 8/31/2025
2.0.2 10 8/31/2025
2.0.1 (current version) 14 8/31/2025
1.9.2 8 8/30/2025
1.5.2 8 8/30/2025
1.5.1 6 8/30/2025
1.5.0 8 8/30/2025
1.4.0 20 8/28/2025
1.2.1 7 8/19/2025
1.2.0 5 8/19/2025
1.0.1 6 8/18/2025
1.0.0 8 8/18/2025
Show less