CFLogger
0.1
CFLogger is a simple PowerShell Logger Class
CFLogger writes the log to the console with color, and to a specified log file path
Usage:
Create an instance of the class:
$myLogger = [CFLogger]::new()
Set Minimum Log Level (default is "TRACE"; options are "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"):
$myLogger.MinErrorLevel = "WA
CFLogger is a simple PowerShell Logger Class
CFLogger writes the log to the console with color, and to a specified log file path
Usage:
Create an instance of the class:
$myLogger = [CFLogger]::new()
Set Minimum Log Level (default is "TRACE"; options are "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"):
$myLogger.MinErrorLevel = "WARN"
Set Log File Path:
$myLogger.LogFilePath = "C:\users\john.doe\documents\myLogger.log"
Write Logs:
$myLogger.Write("My Message")
$myLogger.Write("My Message", "DEBUG")
$myLogger.Write("My Message", "DEBUG", $myStackTraceString)
Minimum PowerShell version
5.0
Installation Options
Owners
Copyright
(c) Kevin Attard Compagno. All rights reserved.
Package Details
Author(s)
- Kevin Attard Compagno
Dependencies
This module has no dependencies.
FileList
- CFLogger.nuspec
- CFLogger.psd1
- CFLogger.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
0.3 | 52 | 1/3/2023 |
0.2 | 12 | 1/3/2023 |
0.1 (current version) | 9 | 1/3/2023 |