Skip to content

C++ implementation of a log manager with CLI options to modify or retrieve information from file

Notifications You must be signed in to change notification settings

jkhuangg/LogManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Log Manager

This C++ program reads in log files with the format:

timestamp|category|log_message

Follow by CLI options to retrieve and modify the log file as wished

Instructions

  1. To compile this program, run make all
  2. This should generate the logman executable

The logman program reads in log files as such:

>./logman log_file

The commands logman support are:

  • Timestamps Search
  • t <timestamp1>|<timestamp2>&l
  • Matching Timestamp
  • m <timestamp>
  • Category Search
  • c <string>
  • Keyword Search
  • k <string>
  • Append Log Entry (by entryID)
  • a <integer>
  • Append Search Results
  • r
  • Delete Log Entry
  • d <integer>
  • Move to Beginning
  • b <integer>
  • Move to End
  • e <integer>
  • Sort Excerpt List
  • s
  • Clear Excerpt List
  • l
  • Print Most Recent Search Results
  • g
  • Print Excerpt List
  • p
  • Quit
  • q
  • No Operation (comment)
  • #

You can also batch commands together into a file. For example:

>./logman spec-log.txt < spec-cmds.txt

Finally, run make clean to clean up the directory

Thanks for stopping by!

About

C++ implementation of a log manager with CLI options to modify or retrieve information from file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published