A cross-platform PowerShell file-based logging module that has multiple severity-levels.
FreeLog is a lightweight, cross-platform PowerShell logging module that provides simple yet powerful logging capabilities for your scripts and modules. With four severity levels, automatic log file management, and pipeline integration, FreeLog makes it easy to implement professional logging in any PowerShell project.
Key Features:
- Simple Setup - Initialize with one command, start logging immediately
- Four Severity Levels - LOG, WARN, ERROR, and FAIL for clear log organization
- Automatic File Management - Creates log files and directories automatically
Install-Module -Name FreeLog -Scope CurrentUserImport-Module FreeLogCreates and initializes a new global log file instance.
New-LogFile -Path "C:\Logs\application.log"Writes messages to the active log file using different severity levels.
Write-LogFile -TaskMessage "Application started"
Write-LogFile -TaskWarn "High memory usage detected"
Write-LogFile -TaskError "Failed to connect to database"
Write-LogFile -TaskFail "Critical system failure"- PowerShell 5.1 or higher
- Operating Systems:
- Windows Desktop or Windows Server OS
- MacOS with Powershell installed
- Any Linux distribution that is supported by Powershell
- Administrative or Local Privileges to install Powershell Modules
- Version: v1.0.1
- Author: Michael Free
- License: See LICENSE file
- Project URL: https://github.com/Michael-Free/FreeLog
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms included in the LICENSE file.
This is using the Free Custom License (FCL v1.0)
This module is provided as-is with no warranty.