Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }