A simple and robust logging module that works cross-platform in Powershell.
FreeLog is a PowerShell module designed for logging purposes, providing functionality to log messages, warnings, errors, and failures to a specified log file.
- Create a new log file.
- Log messages with timestamps.
- Log different levels of messages: logs, warnings, errors, and failures.
Install-Module -Name FreeLog
Import-Module FreeLog
New-LogFile -Path "C:\Logs\mylogfile.log"
Write-LogFile -Log "This is a test log message"Write-LogFile -Warn "This is a warning message"Write-LogFile -Err "This is an error message"Write-LogFile -Fail "This is a failure message"
- PowerShell 5.1 or higher (for Windows) or PowerShell 7.0 or higher (cross-platform).
Michael Free