< Summary

Class:Imagini.Logger
Assembly:Imagini.Core
File(s):/home/razer/vscode-projects/project-grove/imagini/Imagini.Core/Logger.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:28
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.cctor()1025%100%
Set(...)10100%100%

File(s)

/home/razer/vscode-projects/project-grove/imagini/Imagini.Core/Logger.cs

#LineLine coverage
 1using Serilog;
 2
 3namespace Imagini
 4{
 5    public static class Logger
 6    {
 7547        public static Serilog.Core.Logger Log { get; set; }
 8
 9        static Logger()
 10        {
 11#if DEBUG
 12            Set(new LoggerConfiguration()
 13                .MinimumLevel.Debug()
 14                .WriteTo.Console());
 15#else
 016            Set(new LoggerConfiguration()
 017                .MinimumLevel.Information()
 018                .WriteTo.Console());
 19#endif
 120        }
 21
 22        /// <summary>
 23        /// Sets global log settings for Imagini.
 24        /// </summary>
 25        public static void Set(LoggerConfiguration config) =>
 126            Log = config.CreateLogger();
 27    }
 28}