Skip to content

Instantly share code, notes, and snippets.

mntlfngrs

Block or report user

Report or block mntlfngrs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mntlfngrs
mntlfngrs / logger.ps1
Last active Mar 13, 2020 — forked from barsv/logger.ps1
Logging in powershell with leading "0" numbered files that retain file extension and log rotation
View logger.ps1
# all logging settins are here on top
param(
[Parameter(Mandatory=$false)]
[string]$logFile = "$(gc env:computername).log",
[Parameter(Mandatory=$false)]
[string]$logLevel = "DEBUG", # ("DEBUG","INFO","WARN","ERROR","FATAL")
[Parameter(Mandatory=$false)]
[int64]$logSize = 10mb,
[Parameter(Mandatory=$false)]
[int]$logCount = 25
You can’t perform that action at this time.