<commit_before>﻿using System;

namespace ITCC.Logging.Loggers
{
    public class ColouredConsoleLogger : ConsoleLogger
    {
        public ColouredConsoleLogger()
        { }

        public ColouredConsoleLogger(LogLevel level) : base(level) { }

        public override void WriteEntry(object sender, LogEntryEventArgs args)
        {
            if (args.Level > Level)
                return;
            lock (LockObject)
            {
                switch (args.Level)
                {
                    case LogLevel.Critical:
                        Console.ForegroundColor = ConsoleColor.DarkMagenta;
                        break;
                    case LogLevel.Error:
                        Console.ForegroundColor = ConsoleColor.Red;
                        break;
                    case LogLevel.Warning:
                        Console.ForegroundColor = ConsoleColor.Yellow;
                        break;
                    case LogLevel.Info:
                        Console.ForegroundColor = ConsoleColor.Green;
                        break;
                    case LogLevel.Trace:
                        Console.ForegroundColor = ConsoleColor.DarkCyan;
                        break;
                }<commit_msg>Critical log console colour changed from DarkMagenta to Magenta<commit_after>﻿using System;

namespace ITCC.Logging.Loggers
{
    public class ColouredConsoleLogger : ConsoleLogger
    {
        public ColouredConsoleLogger()
        { }

        public ColouredConsoleLogger(LogLevel level) : base(level) { }

        public override void WriteEntry(object sender, LogEntryEventArgs args)
        {
            if (args.Level > Level)
                return;
            lock (LockObject)
            {
                switch (args.Level)
                {
                    case LogLevel.Critical:
                        Console.ForegroundColor = ConsoleColor.Magenta;
                        break;
                    case LogLevel.Error:
                        Console.ForegroundColor = ConsoleColor.Red;
                        break;
                    case LogLevel.Warning:
                        Console.ForegroundColor = ConsoleColor.Yellow;
                        break;
                    case LogLevel.Info:
                        Console.ForegroundColor = ConsoleColor.Green;
                        break;
                    case LogLevel.Trace:
                        Console.ForegroundColor = ConsoleColor.DarkCyan;
                        break;
                }
{'fraction_non_alphanumeric': 0.05748031496062992, 'fraction_numerical': 0.0, 'mean_word_length': 1.1699402220324508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4882849', 'n_tokens_mistral': 573, 'n_tokens_neox': 526, 'n_words': 116}