<commit_before>﻿namespace CertiPay.Common.Logging
{
    using CertiPay.Common;
    using System;
    using System.Configuration;
    using System.Diagnostics;
    using System.Reflection;

    /// <summary>
    /// A class to handle the configuration and routing of log entries to various sinks, so that
    /// an application is agnostic to it's destination.
    /// </summary>
    public class LogManager
    {
        static LogManager()
        {
            // Note: These properties are statically configured here, but can be adjusted via their
            // respective set properties by an application for special use cases.

            ApplicationName = ConfigurationManager.AppSettings["Application"].TrimToNull() ?? "Unknown";

            LogFilePath = ConfigurationManager.AppSettings["LogFilePath"].TrimToNull() ?? String.Format(@"c:\Logs\{0}\{1}\{2}.log", EnvUtil.Current, ApplicationName, "{Date}");

            var logLevelConfig = ConfigurationManager.AppSettings["LogLevel"].TrimToNull() ?? "Info";

            LogLevel = (LogLevel)Enum.Parse(typeof(LogLevel), logLevelConfig, true);

            Version = Utilities.Version<LogManager>();
        }
<commit_msg>Correct ApplicationName setting name<commit_after>﻿namespace CertiPay.Common.Logging
{
    using CertiPay.Common;
    using System;
    using System.Configuration;
    using System.Diagnostics;
    using System.Reflection;

    /// <summary>
    /// A class to handle the configuration and routing of log entries to various sinks, so that
    /// an application is agnostic to it's destination.
    /// </summary>
    public class LogManager
    {
        static LogManager()
        {
            // Note: These properties are statically configured here, but can be adjusted via their
            // respective set properties by an application for special use cases.

            ApplicationName = ConfigurationManager.AppSettings["ApplicationName"].TrimToNull() ?? "Unknown";

            LogFilePath = ConfigurationManager.AppSettings["LogFilePath"].TrimToNull() ?? String.Format(@"c:\Logs\{0}\{1}\{2}.log", EnvUtil.Current, ApplicationName, "{Date}");

            var logLevelConfig = ConfigurationManager.AppSettings["LogLevel"].TrimToNull() ?? "Info";

            LogLevel = (LogLevel)Enum.Parse(typeof(LogLevel), logLevelConfig, true);

            Version = Utilities.Version<LogManager>();
        }

{'fraction_non_alphanumeric': 0.11022964509394571, 'fraction_numerical': 0.0025052192066805845, 'mean_word_length': 2.966887417218543, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3502499', 'n_tokens_mistral': 607, 'n_tokens_neox': 577, 'n_words': 171}