<commit_before>/*
 * License
 */
package org.igniterealtime.xiff.logging
{
	import mx.logging.ILogger;
	import mx.logging.Log;
	import mx.logging.LogEventLevel;
	import mx.logging.targets.TraceTarget;
  import mx.logging.targets.LineFormattedTarget;
  import mx.controls.TextArea;
	
	public final class LoggerFactory
	{
		public static function configureDefault( filters:Array, level:int ):void
		{
			configureTarget( new TraceTarget(), filters, level );
		}

    public static function configureTextAreaTarget( textArea:TextArea, filters:Array, level:int ):void
    {
      configureTarget( new TextAreaTarget( textArea ), filters, level );
    }

    private static function configureTarget( logTarget:LineFormattedTarget, filters:Array, level:int ):void
    {
      logTarget.filters = new Array(["org.jivesoftware.*"]).concat(filters);
			logTarget.level = level;
			logTarget.includeTime = true;
			logTarget.includeLevel = true;

			Log.addTarget(logTarget);
    }
		
		public static function getLogger(category:String):ILogger
		{
			return Log.getLogger(category);
		}
	}
}
<commit_msg>Still had old namespace (jivesoftware).<commit_after>/*
 * License
 */
package org.igniterealtime.xiff.logging
{
	import mx.logging.ILogger;
	import mx.logging.Log;
	import mx.logging.LogEventLevel;
	import mx.logging.targets.TraceTarget;
	import mx.logging.targets.LineFormattedTarget;
	import mx.controls.TextArea;

	public final class LoggerFactory
	{
		public static function configureDefault( filters:Array, level:int ):void
		{
			configureTarget( new TraceTarget(), filters, level );
		}

		public static function configureTextAreaTarget( textArea:TextArea, filters:Array, level:int ):void
		{
			configureTarget( new TextAreaTarget( textArea ), filters, level );
		}

		private static function configureTarget( logTarget:LineFormattedTarget, filters:Array, level:int ):void
		{
			logTarget.filters = new Array(["org.igniterealtime.*"]).concat(filters);
			logTarget.level = level;
			logTarget.includeTime = true;
			logTarget.includeLevel = true;

			Log.addTarget(logTarget);
		}

		public static function getLogger(category:String):ILogger
		{
			return Log.getLogger(category);
		}
	}
}

{'fraction_non_alphanumeric': 0.1061503416856492, 'fraction_numerical': 0.0, 'mean_word_length': 4.559493670886076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2008708', 'n_tokens_mistral': 719, 'n_tokens_neox': 663, 'n_words': 144}