Skip to content

ZCW-Cohort-94/PythonFundamentals.Labs.RSVPAgentProcessingLogParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

RSVP Agent Processing Log Parser Lab

Prerequisite

Reference

Part 1

The data directory contains a file named rsvp_agent_log.dat. Create a file called log_parser.py. The log_parser script should iterate through the file and look for any instances where the log level is WARNING. Anytime it encounters a WARNING entry, it should output the following:

  • the date and time of the entry followed by a space, double dashes, and another space
  • the error message. The error message should exclude the colons and everything between them.

Example output:

WARNINGS:
03/22 08:51:06 -- setsockopt(MCAST_ADD) failed - EDC8116I Address not available.
03/22 08:51:06 -- setsockopt(MCAST_ADD) failed - EDC8116I Address not available.
03/22 08:51:06 -- setsockopt(MCAST_ADD) failed - EDC8116I Address not available.
03/22 08:51:06 -- setsockopt(MCAST_ADD) failed - EDC8116I Address not available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published