Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines the type of log sink and assigns the specified TraceLevel.
Namespace: System.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)
Syntax
'Declaration
Public Sub New ( _
sinkType As SinkType, _
logLevel As TraceLevel _
)
'Usage
Dim sinkType As SinkType
Dim logLevel As TraceLevel
Dim instance As New LogSink(sinkType, logLevel)
public LogSink (
SinkType sinkType,
TraceLevel logLevel
)
public:
LogSink (
SinkType sinkType,
TraceLevel logLevel
)
public LogSink (
SinkType sinkType,
TraceLevel logLevel
)
public function LogSink (
sinkType : SinkType,
logLevel : TraceLevel
)
Parameters
- sinkType
The type of log sink, represented by the SinkType enumeration.
- logLevel
The TraceLevel of the log sink, represented by the TraceLevel enumeration. Available options include: Off, Error, Warning, Information, and Verbose.
Remarks
The LogSink class is used by the CreateLogSinks method to enable individual log sinks on the cache client programmatically.
If a file-based sink is selected, the default file naming convention is as follows, where $ is replaced by the Windows process identifier (PID), and dd-hh by the time format of "date-hour":
DCacheTrace[$]/dd-hh
For more information, see Log Sink Settings (Velocity) and How to: Set Log Sink Levels (Code) (Velocity).