RollingFileSink Constructor

Serilog Sinks AmazonS3

Serilog.Sinks.AmazonS3

RollingFileSink Constructor

Initializes a new instance of the [RollingFileSink] class.

Namespace:  Serilog.Sinks.AmazonS3
Assembly:  Serilog.Sinks.AmazonS3 (in Serilog.Sinks.AmazonS3.dll)

Syntax


public RollingFileSink(
	string path,
	ITextFormatter textFormatter,
	Nullable<long> fileSizeLimitBytes,
	Nullable<int> retainedFileCountLimit,
	Encoding encoding,
	bool buffered,
	RollingInterval rollingInterval,
	bool rollOnFileSizeLimit,
	FileLifecycleHooks fileLifecycleHooks,
	string bucketName,
	RegionEndpoint endpoint,
	string awsAccessKeyId,
	string awsSecretAccessKey
)
Public Sub New ( _
	path As String, _
	textFormatter As ITextFormatter, _
	fileSizeLimitBytes As Nullable(Of Long), _
	retainedFileCountLimit As Nullable(Of Integer), _
	encoding As Encoding, _
	buffered As Boolean, _
	rollingInterval As RollingInterval, _
	rollOnFileSizeLimit As Boolean, _
	fileLifecycleHooks As FileLifecycleHooks, _
	bucketName As String, _
	endpoint As RegionEndpoint, _
	awsAccessKeyId As String, _
	awsSecretAccessKey As String _
)
public:
RollingFileSink(
	String^ path, 
	ITextFormatter^ textFormatter, 
	Nullable<long long^> fileSizeLimitBytes, 
	Nullable<int^> retainedFileCountLimit, 
	Encoding^ encoding, 
	bool^ buffered, 
	RollingInterval^ rollingInterval, 
	bool^ rollOnFileSizeLimit, 
	FileLifecycleHooks^ fileLifecycleHooks, 
	String^ bucketName, 
	RegionEndpoint^ endpoint, 
	String^ awsAccessKeyId, 
	String^ awsSecretAccessKey
)

Parameters

path
Type: String
The path.
textFormatter
Type: ITextFormatter
The text formatter.
fileSizeLimitBytes
Type: Nullable<(Of <(<'Int64>)>)>
The file size limit bytes.
retainedFileCountLimit
Type: Nullable<(Of <(<'Int32>)>)>
The retained file count limit.
encoding
Type: Encoding
The encoding.
buffered
Type: Boolean
if set to true [buffered].
rollingInterval
Type: Serilog.Sinks.AmazonS3..::..RollingInterval
The rolling interval.
rollOnFileSizeLimit
Type: Boolean
if set to true [roll on file size limit].
fileLifecycleHooks
Type: Serilog.Sinks.AmazonS3..::..FileLifecycleHooks
The file lifecycle hooks.
bucketName
Type: String
The Amazon S3 bucket name.
endpoint
Type: RegionEndpoint
The Amazon S3 endpoint.
awsAccessKeyId
Type: String
The Amazon S3 access key id.
awsSecretAccessKey
Type: String
The Amazon S3 access key.

Exceptions


ExceptionCondition
[ArgumentNullException]An [ArgumentNullException] thrown when the path is null.
[ArgumentException] Negative value provided; file size limit must be non-negative. or Zero or negative value provided; retained file count limit must be at least 1.