Challenge: Parse and Summarize Log Data
Tarefa
Swipe to start coding
Given a multiline string representing a system log, your task is to process the log and generate a summary report.
- Extract all lines from the log that contain the word "ERROR".
- Count how many times "ERROR", "WARNING", and "INFO" appear in the log.
- Return a tuple containing the counts for "ERROR", "WARNING", "INFO", and a list of the extracted error lines.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Parse and Summarize Log Data
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Given a multiline string representing a system log, your task is to process the log and generate a summary report.
- Extract all lines from the log that contain the word "ERROR".
- Count how many times "ERROR", "WARNING", and "INFO" appear in the log.
- Return a tuple containing the counts for "ERROR", "WARNING", "INFO", and a list of the extracted error lines.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single