WTelegramClientHelperConfigureLogging Method
Configures WTelegramClient API logging based on the specified parameters.
Namespace: DevCase.ThirdParty.WTelegramClientAssembly: DevCase.net48.ThirdParty.WTelegramClient (in DevCase.net48.ThirdParty.WTelegramClient.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ConfigureLogging(
bool enableDefaultLogger,
bool enableFileLogger,
FileInfo logFile = null,
bool append = false
)
Public Shared Sub ConfigureLogging (
enableDefaultLogger As Boolean,
enableFileLogger As Boolean,
Optional logFile As FileInfo = Nothing,
Optional append As Boolean = false
)
Dim enableDefaultLogger As Boolean
Dim enableFileLogger As Boolean
Dim logFile As FileInfo
Dim append As Boolean
WTelegramClientHelper.ConfigureLogging(enableDefaultLogger,
enableFileLogger, logFile, append)
public:
static void ConfigureLogging(
bool enableDefaultLogger,
bool enableFileLogger,
FileInfo^ logFile = nullptr,
bool append = false
)
static member ConfigureLogging :
enableDefaultLogger : bool *
enableFileLogger : bool *
?logFile : FileInfo *
?append : bool
(* Defaults:
let _logFile = defaultArg logFile null
let _append = defaultArg append false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- enableDefaultLogger Boolean
-
If True, enables the default (console) logging.
- enableFileLogger Boolean
-
If True, enables file logging.
- logFile FileInfo (Optional)
-
Optional. The log file to use for file logging.
If this value is null and enableFileLogger is True,
the log file name will be "WTelegramClient.log" and
it will be created in the current working directory.
- append Boolean (Optional)
-
Optional. Indicates whether to append logs to an existing file.
Default value: False
This is a code example.
No code example is currently available or this language may not be supported.
#If DEBUG Then
ConfigureLogging(enableDefaultLogger:=True, enableFileLogger:=True,
New FileInfo(".\WTelegramClient.log"), append:=False)
#Else
ConfigureLogging(enableDefaultLogger:=False, enableFileLogger:=True,
New FileInfo(".\WTelegramClient.log"), append:=True)
#End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.