< Back

Clear-CouchDBLog

Sun Jan 19, 2020 6:28 pm

NAME Clear-CouchDBLog



SYNOPSIS

Clear log.





SYNTAX

Clear-CouchDBLog [[-Path] <String>] [-Rotate] [<CommonParameters>]





DESCRIPTION

Clear and rotate CouchDB log (couch.log).





PARAMETERS

-Path <String>

The path of log file. Default, is C:\\CouchDB\\couch.log on Windows and /var/log/couchdb/couch.log on Unix.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Rotate [<SwitchParameter>]

Rotate an existing log. Copy before delete in this format couch.log.t-i-m-e_s_t_a_m_p



Required? false

Position? named

Default value False

Accept pipeline input? false

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Clear-CouchDBLog -Rotate



Clear default couch.log and save a copy before delete it.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Clear-CouchDBLog -Path /custom/couchdb/log/couch.log



Clear custom log /custom/couchdb/log/couch.log.











RELATED LINKS

https://pscouchdb.readthedocs.io/en/lat ... ar-the-log