Beispiel #1
0
 /// <summary>
 /// Write a message to the logs
 /// </summary>
 /// <param name="level">The trace level of the message to be written</param>
 /// <param name="msg">The message to be written</param>
 private void Write(OutputTraceLevel level, String msg)
 {
     if (TraceListener != null)
     {
         TraceListener.OutputTrace(level, msg);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Write a message to the logs
 /// </summary>
 /// <param name="level">The trace level of the message to be written</param>
 /// <param name="msg">The message to be written</param>
 private void Write(OutputTraceLevel level, String msg)
 {
     if (TraceListener != null)
     {
         TraceListener.OutputTrace(level, msg);
     }
 }
 /// <summary>
 /// Create the linphone core and set some basic configuration values
 /// </summary>
 /// <param name="server">The out-of-process server</param>
 /// <param name="listener">The LinphoneCoreListener</param>
 /// <param name="level">The log level to use for the Logger</param>
 public static void CreateLinphoneCore(Linphone.Core.OutOfProcess.Server server, LinphoneCoreListener listener, OutputTraceLevel level)
 {
     LpConfig config = server.LinphoneCoreFactory.CreateLpConfig(GetConfigPath(), GetFactoryConfigPath());
     ConfigureLogger(server, level);
     server.LinphoneCoreFactory.CreateLinphoneCore(listener, config);
     server.LinphoneCore.RootCA = "Assets/rootca.pem";
     server.LinphoneCore.ChatDatabasePath = GetChatDatabasePath();
     server.LinphoneCore.SetUserAgent(Customs.UserAgent, Linphone.Version.Number);
 }
        /// <summary>
        /// Create the linphone core and set some basic configuration values
        /// </summary>
        /// <param name="server">The out-of-process server</param>
        /// <param name="listener">The LinphoneCoreListener</param>
        /// <param name="level">The log level to use for the Logger</param>
        public static void CreateLinphoneCore(Linphone.Core.OutOfProcess.Server server, LinphoneCoreListener listener, OutputTraceLevel level)
        {
            LpConfig config = server.LinphoneCoreFactory.CreateLpConfig(GetConfigPath(), GetFactoryConfigPath());

            ConfigureLogger(server, level);
            server.LinphoneCoreFactory.CreateLinphoneCore(listener, config);
            server.LinphoneCore.RootCA           = "Assets/rootca.pem";
            server.LinphoneCore.ChatDatabasePath = GetChatDatabasePath();
            server.LinphoneCore.SetUserAgent(Customs.UserAgent, Linphone.Version.Number);
        }
 /// <summary>
 /// Configure the Logger
 /// </summary>
 /// <param name="server">The out-of-process server</param>
 /// <param name="level">The log level to use for the Logger</param>
 public static void ConfigureLogger(Linphone.Core.OutOfProcess.Server server, OutputTraceLevel level)
 {
     server.LinphoneCoreFactory.SetLogLevel(level);
     Logger.Instance.TraceListener = server.BackgroundModeLogger;
 }
 /// <summary>
 /// Configure the Logger
 /// </summary>
 /// <param name="server">The out-of-process server</param>
 /// <param name="level">The log level to use for the Logger</param>
 public static void ConfigureLogger(Linphone.Core.OutOfProcess.Server server, OutputTraceLevel level)
 {
     server.LinphoneCoreFactory.SetLogLevel(level);
     Logger.Instance.TraceListener = server.BackgroundModeLogger;
 }
Beispiel #7
0
 public void ConfigureLog(OutputTraceLevel level)
 {
     Core.LogLevel = level;
 }