Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Logger"/> class.
        /// </summary>
        /// <param name="maxFileSize">Maximum size of the file.</param>
        /// <param name="fileName">Name of the file.</param>
        /// <param name="pathType">Type of the path.</param>
        /// <param name="showTraceOutput">if set to <c>true</c> [show trace output].</param>
        public Logger(int maxFileSize         = LoggerSettings.DefaultMaxFileSize, string fileName   = LoggerSettings.DefaultFileName,
                      LoggerPathType pathType = LoggerSettings.DefaultPathType, bool showTraceOutput = false)
        {
            Settings = new LoggerSettings(maxFileSize, fileName, pathType, showTraceOutput);

            Initialize();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Logger"/> class.
        /// </summary>
        /// <param name="configSectionName">Name of the configuration section in the configuration file.</param>
        public Logger(string configSectionName = "Logger")
        {
            Settings = new LoggerSettings(configSectionName);

            Initialize();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Logger"/> class.
        /// </summary>
        /// <param name="configSectionName">Name of the configuration section in the configuration file.</param>
        public Logger(string configSectionName = LoggerSettings.DefaultConfigSectionName)
        {
            Settings = new LoggerSettings(configSectionName);

            Initialize();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Logger"/> class.
        /// </summary>
        /// <param name="configSectionName">Name of the configuration section in the configuration file.</param>
        public Logger(string configSectionName = "Logger")
        {
            Settings = new LoggerSettings(configSectionName);

            Initialize();
        }