Question: Python language, practice with string processing Part I: Search the System Logs (20 points) Computers generate many diagnostic, error and other informational messages as users
Python language, practice with string processing




Part I: Search the System Logs (20 points) Computers generate many diagnostic, error and other informational messages as users login and logout, run programs, and perform other tasks on the computer. This collection of messages is known as a "system log" or simply, "log". For this problem you will write a function that takes a list of strings that represent log messages and extract information from them In our fictional computer system, log messages are formatted like this: COMPUTER NAME USER NAME; MESSAGE TYPE;MESSAGE For example, consider the following log message: SuperComp1;poohbear;ErroriFailed to login successfully We see that the log message consists of four parts, separated by semicolons the name of the computer that generated the log messsage
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
