Skip to content

Commit

Permalink
ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsAza committed Aug 28, 2020
1 parent 1ae8e14 commit c82154e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PSLog/PSLog.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ https://Github.com/ItsAza/Simple-PS-Log
function Write-Log {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true,HelpMessage="Message to be logged")][string]$msg, #Log Message
[Parameter(Mandatory=$false,HelpMessage="Switch Parameter to include source of log call")][switch]$s, #Source switch
[Parameter(Mandatory=$true,HelpMessage="Message to be logged")][string]$msg, #Log Message
[Parameter(Mandatory=$false,HelpMessage="Switch Parameter to include source of log call")][switch]$s, #Source switch
[Parameter(Mandatory=$false,HelpMessage="Switch Parameter for logging Info events")][switch]$i, #Info Tag switch
[Parameter(Mandatory=$false,HelpMessage="Switch Parameter for logging Warning events")][switch]$w, #Warning Tag switch
[Parameter(Mandatory=$false,HelpMessage="Switch Parameter for logging Error events")][switch]$e, #Error Tag switch
Expand Down Expand Up @@ -59,7 +59,6 @@ function Remove-Log {
$PSLog_Path = "$($PSScriptRoot)$($PSLog_Folder)"
}
process {

if(Test-Path -Path $PSLog_Path){
$PSLog_LDirContents = Get-ChildItem -Path $PSLog_Path
foreach ($file in $PSLog_LDirContents) {
Expand Down

0 comments on commit c82154e

Please sign in to comment.