< Summary

Class:DCL.Logger
Assembly:Logger
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Logger/Logger.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:30
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Logger(...)0%2100%
Verbose(...)0%6200%
Info(...)0%2100%
Error(...)0%2100%
Warning(...)0%2100%
Exception(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/Logger/Logger.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL
 4{
 5    public class Logger
 6    {
 07        public readonly ILogger unityLogger = Debug.unityLogger;
 8        public bool verboseEnabled = false;
 9
 10        private string tag;
 11
 012        public Logger(string tag) { this.tag = tag; }
 13
 14        public void Verbose(string message, Object context = null)
 15        {
 016            if (!verboseEnabled)
 017                return;
 18
 019            unityLogger.Log(LogType.Log, tag, message, context);
 020        }
 21
 022        public void Info(string message, Object context = null) { unityLogger.Log(LogType.Log, tag, message, context); }
 23
 024        public void Error(string message, Object context = null) { unityLogger.Log(LogType.Error, tag, message, context)
 25
 026        public void Warning(string message, Object context = null) { unityLogger.Log(LogType.Warning, tag, message, cont
 27
 028        public void Exception(string message, Object context = null) { unityLogger.Log(LogType.Exception, tag, message, 
 29    }
 30}