<commit_before>﻿using System;

namespace Grace.Logging
{
	/// <summary>
	/// Static logging class for the framework. 
	/// </summary>
	public static class Logger
	{
		private static volatile ILogService logServiceInstance;

		/// <summary>
		/// Get the log service for the framework
		/// </summary>
		public static ILogService LogService
		{
			get
			{
				if (logServiceInstance == null)
				{
					logServiceInstance = new DevNullLogService();
				}

				return logServiceInstance;
			}
		}

		/// <summary>
		/// Set the logger to be used for the containers
		/// </summary>
		/// <param name="logService"></param>
		public static void SetLogService(ILogService logService)
		{
			logServiceInstance = logService;
		}

		/// <summary>
		/// Get an ILog instance
		/// </summary>
		/// <param name="type"></param>
		/// <returns></returns>
		public static ILog GetLogger(Type type)
		{
			return LogService.GetLogger(type);
		}

		/// <summary>
		/// Get an ILog instance
		/// </summary>
		/// <typeparam name="T"></typeparam>
		/// <returns></returns>
		public static ILog GetLogger<T>()
		{
			return LogService.GetLogger(typeof(T));
		}

		/// <summary>
		/// Get an ILog by name
		/// </summary>
		/// <param name="logName"></param>
		/// <returns></returns>
		public static ILog GetLogger(string logName)
		{
			return LogService.GetLogger(logName);
		}

		/// <summary>
		/// Log a debug message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Debug(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Debug(message, exp);
		}

		/// <summary>
		/// Log an error message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Error(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Debug(message, exp);
		}
	}
}<commit_msg>Adding Info, Warn, And Fatal to static logger<commit_after>﻿using System;

namespace Grace.Logging
{
	/// <summary>
	/// Static logging class for the framework. 
	/// </summary>
	public static class Logger
	{
		private static volatile ILogService logServiceInstance;

		/// <summary>
		/// Get the log service for the framework
		/// </summary>
		public static ILogService LogService
		{
			get
			{
				if (logServiceInstance == null)
				{
					logServiceInstance = new DevNullLogService();
				}

				return logServiceInstance;
			}
		}

		/// <summary>
		/// Set the logger to be used for the containers
		/// </summary>
		/// <param name="logService"></param>
		public static void SetLogService(ILogService logService)
		{
			logServiceInstance = logService;
		}

		/// <summary>
		/// Get an ILog instance
		/// </summary>
		/// <param name="type"></param>
		/// <returns></returns>
		public static ILog GetLogger(Type type)
		{
			return LogService.GetLogger(type);
		}

		/// <summary>
		/// Get an ILog instance
		/// </summary>
		/// <typeparam name="T"></typeparam>
		/// <returns></returns>
		public static ILog GetLogger<T>()
		{
			return LogService.GetLogger(typeof(T));
		}

		/// <summary>
		/// Get an ILog by name
		/// </summary>
		/// <param name="logName"></param>
		/// <returns></returns>
		public static ILog GetLogger(string logName)
		{
			return LogService.GetLogger(logName);
		}

		/// <summary>
		/// Log a Debug message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Debug(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Debug(message, exp);
		}

		/// <summary>
		/// Log a Info message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Info(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Info(message, exp);
		}

		/// <summary>
		/// Log a Warn message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Warn(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Warn(message, exp);
		}

		/// <summary>
		/// Log an Error message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Error(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Debug(message, exp);
		}

		/// <summary>
		/// Log an Fatal message
		/// </summary>
		/// <param name="message"></param>
		/// <param name="supplemental"></param>
		/// <param name="exp"></param>
		public static void Fatal(string message, string supplemental = null, Exception exp = null)
		{
			LogService.GetLogger(supplemental).Fatal(message, exp);
		}
	}
}
{'fraction_non_alphanumeric': 0.16989247311827957, 'fraction_numerical': 0.0, 'mean_word_length': 2.8264771877337322, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '6789849', 'n_tokens_mistral': 1801, 'n_tokens_neox': 1541, 'n_words': 404}