本文整理汇总了C#中Pubnub.SetInternalLogLevel方法的典型用法代码示例。如果您正苦于以下问题:C# Pubnub.SetInternalLogLevel方法的具体用法?C# Pubnub.SetInternalLogLevel怎么用?C# Pubnub.SetInternalLogLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pubnub
的用法示例。
在下文中一共展示了Pubnub.SetInternalLogLevel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
//.........这里部分代码省略.........
}
catch (MissingFieldException mse)
{
Console.WriteLine(mse.Message);
Console.WriteLine("Please RE-ENTER Proxy Server details.");
}
Console.ResetColor();
}
}
else
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("No Proxy");
Console.ResetColor();
}
Console.WriteLine();
Console.WriteLine("Enter Auth Key. If you don't want to use Auth Key, Press ENTER Key");
authKey = Console.ReadLine();
pubnub.AuthenticationKey = authKey;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine(string.Format("Auth Key = {0}", authKey));
Console.ResetColor();
Console.WriteLine();
Console.WriteLine("Enable Internal Logging? Enter Y for Yes, Else N for No.");
Console.WriteLine("Default = Y ");
string enableLoggingString = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Blue;
if (enableLoggingString.Trim().ToLower() == "n")
{
pubnub.SetInternalLogLevel(LoggingMethod.Level.Off);
Console.WriteLine("Disabled internal logging");
}
else
{
pubnub.SetInternalLogLevel(LoggingMethod.Level.Info);
Console.WriteLine("Enabled internal logging");
}
Console.ResetColor();
Console.WriteLine();
Console.WriteLine("Display ErrorCallback messages? Enter Y for Yes, Else N for No.");
Console.WriteLine("Default = N ");
string displayErrMessage = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Blue;
if (displayErrMessage.Trim().ToLower() == "y" )
{
showErrorMessageSegments = true;
Console.WriteLine("ErrorCallback messages will be displayed");
}
else
{
showErrorMessageSegments = false;
Console.WriteLine("ErrorCallback messages will NOT be displayed.");
}
Console.ResetColor();
Console.WriteLine();
Console.WriteLine("Display Debug Info in ErrorCallback messages? Enter Y for Yes, Else N for No.");
Console.WriteLine("Default = Y ");