Overrides the file-name and logging-level entries in
logging.xml.
Namespace: Microsoft.MetadirectoryServices.Logging
Assembly: Logging (in logging.dll)
Usage
Visual Basic |
Dim logFileName As String
Dim loggingLevel As Integer
Logging.SetupLogFile(logFileName, loggingLevel)
|
Syntax
Visual Basic |
Public Shared Sub SetupLogFile ( _
<OptionalAttribute> Optional logFileName As String = Nothing, _
<OptionalAttribute> Optional loggingLevel As Integer = 0 _
)
|
C# |
public static void SetupLogFile (
[OptionalAttribute] string logFileName,
[OptionalAttribute] int loggingLevel
)
|
C++ |
public:
static void SetupLogFile (
[OptionalAttribute] String^ logFileName,
[OptionalAttribute] int loggingLevel
)
|
J# |
public static void SetupLogFile (
/** @attribute OptionalAttribute() */ String logFileName,
/** @attribute OptionalAttribute() */ int loggingLevel
)
|
JScript |
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