Nebula.Log
1.0.7
A lightweight and configurable logging module for PowerShell scripts, supports multiple log levels and file rotation.
Minimum PowerShell version
5.1
Installation Options
Owners
Package Details
Author(s)
- Giovanni Solone
Tags
Logging PowerShell Nebula Utilities
Functions
PSEditions
Dependencies
This module has no dependencies.
Release Notes
- Improved: Now compatible with PowerShell 5.1 and later.
- Improved: Refactored module structure for better maintainability.
- Improved: Made LogLocation optional (caller script dir or current dir).
- Improved: LogFileName default moved to param. Added directory auto-creation.
- Improved: Switched log rotation to Move-Item. Added UTF-8 writer with retries.
- Improved: Added -MaxFileSizeKB, -AsJson, -PassThru. Console coloring.
- Improved: Added color coding per level.
- Added: -Color switch (console coloring is now opt-in; default: no colors).
FileList
- Nebula.Log.nuspec
- Private\Get-LevelColor.ps1
- Public\Test-ActivityLog.ps1
- README.md
- Private\Resolve-LogLocation.ps1
- Public\Write-Log.ps1
- Nebula.Log.psd1
- Private\Add-LineToFile.ps1
- Nebula.Log.psm1