Share via


DataCacheFactory.CreateLogSinks Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Allows you to set the log levels on one or more log sinks for the cache client.

Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Shared Sub CreateLogSinks ( _
    sinkList As List(Of DataCacheLogSink) _
)
'Usage
Dim sinkList As List(Of DataCacheLogSink)

DataCacheFactory.CreateLogSinks(sinkList)
public static void CreateLogSinks (
    List<DataCacheLogSink> sinkList
)
public:
static void CreateLogSinks (
    List<DataCacheLogSink^>^ sinkList
)
public static void CreateLogSinks (
    List<DataCacheLogSink> sinkList
)
public static function CreateLogSinks (
    sinkList : List<DataCacheLogSink>
)

Parameters

  • sinkList
    Log level settings for one or more log sinks.

Remarks

This method provides precise control of log sinks. This allows you to specify only the log sinks you want, with each log sink set at a different EventTrace level. The different types of log sinks that can be enabled by the CreateLogSink method are defined by the DataCacheSinkType enumeration: console-based, file-based, and Event Tracing for Windows (ETW)-based log sinks. For more information about log sink settings, see Log Sink Settings (Velocity).

See Also

Reference

DataCacheFactory Class
DataCacheFactory Members
Microsoft.Data.Caching Namespace