A class for filtering log messages that are produced using GCKLogger.
More...
#import <GCKLoggerFilter.h>
|
GCKLoggerLevel | minimumLevel |
| The minimum logging level that will be logged from this filter. More...
|
|
A class for filtering log messages that are produced using GCKLogger.
- Since
- 3.0
Adds a list of class names to be matched by the filter.
A class name can be a simple name or the name of an extension, for example, @"MyClass"
or @"MyClass(MyExtension)"
. If an extension is not included in the name, all extensions of the class will be included implicitly. Glob patterns are supported.
- Deprecated:
- Use setLoggingLevel:forClasses: instead.
Adds a list of class names to be matched by the filter, specifying a minimum logging level.
A class name can be a simple name or the name of an extension, for example, @"MyClass"
or @"MyClass(MyExtension)"
. If an extension is not included in the name, all extensions of the class will be included implicitly. Glob patterns are supported.
- Deprecated:
- Use setLoggingLevel:forClasses: instead.
- Parameters
-
classNames | The class names. |
minimumLogLevel | The minimum level to log; may be GCKLoggerLevelVerbose to log all levels. |
- Since
- 3.2
Adds a list of non-member function names to be matched by the filter, specifying a minimum logging level.
Glob patterns are supported.
- Deprecated:
- Use setLoggingLevel:forFunctions: instead.
- Parameters
-
functionNames | The function names. |
minimumLogLevel | The minimum level to log; may be GCKLoggerLevelVerbose to log all levels. |
- Since
- 3.2
- (void) addMessagePatterns: |
|
(NSArray< NSString * > *) |
messagePatterns |
|
Adds a list of regular expression patterns for matching the text of the log messages.
Adds a list of regular expression patterns for matching the text of the log messages with optional case-insensitivity.
- Deprecated:
- Use addMessagePatterns: with inline (?-i) or (?i) instead.
- (BOOL exclusive) GCK_DEPRECATED |
|
("Not supported") |
|
|
A flag indicating whether the filter is exclusive (YES
) or inclusive (NO
).
By default filters are inclusive, that is, they accept all log messages that match the filter.
- Deprecated:
- No longer implemented; value is ignored.
Resets the filter; removing all match criteria.
- (void) setLoggingLevel: |
|
(GCKLoggerLevel) |
minimumLevel |
forClasses: |
|
(NSArray< NSString * > *) |
classNames |
|
|
| |
Sets the minimum logging level that will be passed by the filter for the set of matching classes.
Glob patterns are supported for the class names.
- Parameters
-
minimumLevel | The minimum logging level for these classes. May be GCKLoggerLevelVerbose. to include all levels. |
classNames | A list of class names. |
- Since
- 3.3
- (void) setLoggingLevel: |
|
(GCKLoggerLevel) |
minimumLevel |
forFunctions: |
|
(NSArray< NSString * > *) |
functionNames |
|
|
| |
Sets the minimum logging level that will be passed by the filter for the set of matching function names.
Glob patterns are supported.
- Parameters
-
minimumLevel | The minimum logging level for these functions. May be GCKLoggerLevelVerbose to include all levels. |
functionNames | A list of function names. |
- Since
- 3.3
- (GCKLoggerLevel) minimumLevel |
|
readwritenonatomicassign |
The minimum logging level that will be logged from this filter.
- Since
- 3.2
The documentation for this class was generated from the following file: