Logo: Relish

  1. Sign in

Project: Indy

Finding log messages at a particular time

  • @time

As an Indy user I am able to create an instance and find all logs at an exact time.

Background
Given
the following log:
2000-09-07 14:07:41 INFO  MyApp - Entering application.
2000-09-07 14:07:42 INFO  MyApp - Exiting application.
Scenarios
Count of entries at the specified time
When
searching the log for the time 2000-09-07 14:07:41
Then
I expect to have found 1 log entry
Particular entry at the specified time
When
searching the log for the time 2000-09-07 14:07:41
Then
I expect the last entry to be:
2000-09-07 14:07:41 INFO  MyApp - Entering application.
No entries at the specified time
When
searching the log for the time 2000-09-07 14:07:40
Then
I expect to have found no log entries

Last published about 5 years ago by Burtlo.