< Back

Add-SinkFile

Sat Jan 18, 2020 8:20 pm

NAME Add-SinkFile



SYNTAX

Add-SinkFile [-LoggerConfig] <LoggerConfiguration> [-Path] <string> [[-RestrictedToMinimumLevel] {Verbose | Debug

| Information | Warning | Error | Fatal}] [[-OutputTemplate] <string>] [[-FormatProvider] <IFormatProvider>]

[[-FileSizeLimitBytes] <long>] [[-LevelSwitch] <LoggingLevelSwitch>] [[-FlushToDiskInterval] <timespan>]

[[-RollingInterval] {Infinite | Year | Month | Day | Hour | Minute}] [[-RetainedFileCountLimit] <int>]

[[-Encoding] <Encoding>] [-Buffered] [-Shared] [-RollOnFileSizeLimit] [<CommonParameters>]





PARAMETERS

-Buffered



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Encoding <Encoding>



Required? false

Position? 10

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-FileSizeLimitBytes <long>



Required? false

Position? 5

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-FlushToDiskInterval <timespan>



Required? false

Position? 7

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-FormatProvider <IFormatProvider>



Required? false

Position? 4

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-LevelSwitch <LoggingLevelSwitch>



Required? false

Position? 6

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-LoggerConfig <LoggerConfiguration>



Required? true

Position? 0

Accept pipeline input? true (ByValue)

Parameter set name (All)

Aliases None

Dynamic? false



-OutputTemplate <string>



Required? false

Position? 3

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Path <string>



Required? true

Position? 1

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-RestrictedToMinimumLevel <LogEventLevel>



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-RetainedFileCountLimit <int>



Required? false

Position? 9

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-RollOnFileSizeLimit



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-RollingInterval <RollingInterval>



Required? false

Position? 8

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Shared



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? 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

Serilog.LoggerConfiguration





OUTPUTS

System.Object



ALIASES

None





REMARKS

None