< Back

Invoke-LogRotation

Mon Jan 13, 2020 4:05 am

NAME Invoke-LogRotation



SYNOPSIS

Handle log rotation.





SYNTAX

Invoke-LogRotation [[-Log] <Object>] [<CommonParameters>]





DESCRIPTION

Invoke-LogRotation handles log rotation, using the log parameters defined in the log object.

This function is called within the Write-Log function so that log rotation are invoked after

each write to the log file.





PARAMETERS

-Log <Object>

The log object created using the New-Log function. Defaults to reading the global PSLOG variable.



Required? false

Position? 1

Default value $global:PSLOG

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: ????????yvind Kallstad

Date: 21.11.2014

Version: 1.0





RELATED LINKS