Sha256: ea58ad69a4887650f78c514fb349049d536be455cea49c4b3c8148f829071fd8

Contents?: true

Size: 774 Bytes

Versions: 3

Compression:

Stored size: 774 Bytes

Contents

#!/usr/bin/ruby
#
# log - Sets up the logger by which the linkparser system can log itself.
#
# == Synopsis
#
#
#
# == Description
#
#
# == Author
#
#	Martin Chase <stillflame@FaerieMUD.org>
#
# == Copyright
#
# Copyright (c) 2002, 2003 The FaerieMUD Consortium. All rights reserved.
#
# This module is free software. You may use, modify, and/or redistribute this
# software under the terms of the Perl Artistic License. (See
# http://language.perl.com/misc/Artistic.html)

require "log4r"

class LinkParser
	
	include Log4r

	Log = Logger::new( "LinkParser" )
	Outputter.stderr.formatter =
		PatternFormatter::new( :pattern => '\e[1;32m[%l] %C:\e[0m %.1024m' )
	Log.outputters = Outputter.stderr
	if $DEBUG
		Log.level = Log4r::ALL
	else
		Log.level = Log4r::INFO
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rwdeliza-0.03 lib/linkparser/log.rb
rwdeliza-0.05 lib/linkparser/log.rb
rwdeliza-0.04 lib/linkparser/log.rb