コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoggerSettings"/> 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 LoggerSettings(int maxFileSize = DefaultMaxFileSize, string fileName = DefaultFileName, LoggerPathType pathType = DefaultPathType, bool showTraceOutput = false)
 {
     MaxFileSize     = maxFileSize;
     FileName        = fileName;
     PathType        = pathType;
     ShowTraceOutput = showTraceOutput;
 }
コード例 #2
0
ファイル: Logger.cs プロジェクト: SimplifyNet/Simplify
        /// <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();
        }