Logging.SetupLogFile Method

Overrides the file-name and logging-level entries in logging.xml.

Namespace: Microsoft.MetadirectoryServices.Logging
Assembly: Logging (in Logging.dll)

Usage

'Usage
Dim logFileName As String
Dim loggingLevel As Integer

Logging.SetupLogFile(logFileName, loggingLevel)

Syntax

'Declaration
Public Shared Sub SetupLogFile ( _
    <OptionalAttribute> Optional logFileName As String = Nothing, _
    <OptionalAttribute> Optional loggingLevel As Integer = 0 _
)
public static void SetupLogFile (
    [OptionalAttribute] string logFileName,
    [OptionalAttribute] int loggingLevel
)
public:
static void SetupLogFile (
    [OptionalAttribute] String^ logFileName, 
    [OptionalAttribute] int loggingLevel
)
public static void SetupLogFile (
    /** @attribute OptionalAttribute() */ String logFileName, 
    /** @attribute OptionalAttribute() */ int loggingLevel
)
public static function SetupLogFile (
    logFileName : String, 
    loggingLevel : int
)

Parameters

  • logFileName
    The full path to the logging file. If this parameter is an empty String or null, the file-name entry from logging.xml is used.
  • loggingLevel
    The logging level below which messages are logged. This parameter overrides the value of the logging-level entry in logging.xml.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

Logging Class
Logging Members
Microsoft.MetadirectoryServices.Logging Namespace
Logging Class