示例#1
0
        /// <summary>
        /// Default values for system settings.
        /// </summary>
        /// <returns>Settings object.</returns>
        public static Settings Default()
        {
            Settings ret = new Settings();

            ret.Environment   = "linux";
            ret.EnableConsole = true;
            ret.Logging       = SettingsLogging.Default();
            ret.Proxy         = SettingsProxy.Default();
            return(ret);
        }
示例#2
0
        /// <summary>
        /// Default values for logging settings.
        /// </summary>
        /// <returns>SettingsLogging object.</returns>
        public static SettingsLogging Default()
        {
            SettingsLogging ret = new SettingsLogging();

            ret.SyslogEnable     = true;
            ret.ConsoleEnable    = true;
            ret.MinimumLevel     = 0;
            ret.SyslogServerIp   = "127.0.0.1";
            ret.SyslogServerPort = 514;
            return(ret);
        }