#!/usr/bin/ruby -W0 # 1.9 adds realpath to resolve symlinks; 1.8 doesn't # have this method, so we add it so we get resolved symlinks # and compatibility unless File.respond_to? :realpath class File def self.realpath path return realpath(File.readlink(path)) if symlink?(path) path end end end $: << File.expand_path(File.dirname(File.realpath(__FILE__)) + '/../lib') require 'rubygems' require 'gli' require 'EasyLogger_version' require 'easy_logger' include GLI version EasyLogger::VERSION desc 'View the line matching model and/or methods on a log file in command line' long_desc <