indy 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +7 -0
- data/README.md +20 -3
- data/Rakefile +1 -0
- data/features/step_definitions/find_by.steps.rb +2 -10
- data/indy.gemspec +8 -1
- data/lib/indy.rb +3 -1
- data/lib/indy/indy.rb +237 -280
- data/lib/indy/log_formats.rb +39 -0
- data/lib/indy/patterns.rb +25 -0
- data/performance/profile_spec.rb +8 -8
- data/spec/indy_spec.rb +20 -20
- data/spec/log_format_spec.rb +58 -0
- data/spec/search_spec.rb +26 -6
- data/spec/time_spec.rb +16 -0
- metadata +105 -7
- data/features/log_levels.feature +0 -40
data/features/log_levels.feature
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
@log_level
|
2
|
-
Feature: Finding log entries at various log levels
|
3
|
-
As an Indy user I am able to create an instance and find all logs at or above the log level.
|
4
|
-
|
5
|
-
Background:
|
6
|
-
Given the following log:
|
7
|
-
"""
|
8
|
-
2000-09-07 14:07:41 INFO MyApp - Entering application.
|
9
|
-
2000-09-07 14:07:42 DEBUG MyApp - Focusing application.
|
10
|
-
2000-09-07 14:07:43 DEBUG MyApp - Blurring application.
|
11
|
-
2000-09-07 14:07:44 WARN MyApp - Low on Memory.
|
12
|
-
2000-09-07 14:07:45 ERROR MyApp - Out of Memory.
|
13
|
-
2000-09-07 14:07:46 INFO MyApp - Exiting application.
|
14
|
-
"""
|
15
|
-
|
16
|
-
Scenario: Count of messages at a specified log level or higher
|
17
|
-
When searching the log for the log severity INFO and higher
|
18
|
-
Then I expect to have found 4 log entries
|
19
|
-
|
20
|
-
|
21
|
-
Scenario: Count of messages at a specified log level or higher
|
22
|
-
When searching the log for the log severity DEBUG and higher
|
23
|
-
Then I expect to have found 6 log entries
|
24
|
-
|
25
|
-
|
26
|
-
Scenario: Count of messages at a specified log level or lower
|
27
|
-
When searching the log for the log severity INFO and lower
|
28
|
-
Then I expect to have found 4 log entries
|
29
|
-
|
30
|
-
|
31
|
-
Scenario: Particular message at a specified log level or higher
|
32
|
-
When searching the log for the log severity INFO and higher
|
33
|
-
Then I expect the first entry to be:
|
34
|
-
"""
|
35
|
-
2000-09-07 14:07:41 INFO MyApp - Entering application.
|
36
|
-
"""
|
37
|
-
And I expect the last entry to be:
|
38
|
-
"""
|
39
|
-
2000-09-07 14:07:46 INFO MyApp - Exiting application.
|
40
|
-
"""
|