Skip to content

OO design or how to effectively split a method into several files 🙂

Notifications You must be signed in to change notification settings

melopilosyan/log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Analyzer


Installation

Install Ruby 3.1.0. Clone the repo and

cd log-analyzer
bundle install

Usage

The default format(total views counts) in default order(descending)

:$ ./parser webserver.log

/about/2 90 visits
/contact 89 visits
/index 82 visits
/about 81 visits
/help_page/1 80 visits
/home 78 visits

Format by unique page views counts in asending order:

:$ ./parser -f UV -o ASC webserver.log

/about 21 unique views
/about/2 22 unique views
/help_page/1 23 unique views
/contact 23 unique views
/home 23 unique views
/index 23 unique views

Run tests with

rake test

About

OO design or how to effectively split a method into several files 🙂

Topics

Resources

Stars

Watchers

Forks

Languages