コード例 #1
0
ファイル: Logger.cs プロジェクト: kangkot/MongoDB.Messaging
        private static ILogBuilder CreateBuilder(LogLevel logLevel, string callerFilePath)
        {
            string name = GetName(callerFilePath);

            var writer  = ResolveWriter();
            var builder = new LogBuilder(logLevel, writer);

            builder.Logger(name);

            MergeProperties(builder);

            return(builder);
        }
コード例 #2
0
ファイル: Logger.cs プロジェクト: abbasmhd/MongoDB.Messaging
        private static LogBuilder CreateBuilder(LogLevel logLevel, string callerFilePath)
        {
            string name = LoggerExtensions.GetFileNameWithoutExtension(callerFilePath ?? string.Empty);

            var writer  = ResolveWriter();
            var builder = new LogBuilder(logLevel, writer);

            builder.Logger(name);

            MergeProperties(builder);

            return(builder);
        }