LogFilter: Create a LogFilter base class
The LogFilter will be used to filter based on context with the right context filters. We are likely to have a default chain of ANDed filters that will be checked.
This commit is contained in:
parent
7da7dfdea0
commit
3b42385269
|
@ -181,8 +181,20 @@ LogTarget subclass: LogTranscriptTarget [
|
|||
]
|
||||
]
|
||||
|
||||
Object subclass: LogFilter [
|
||||
<category: 'osmo-logging-core'>
|
||||
<comment: 'I filter based on mood, context and Bangkok Law'>
|
||||
|
||||
filter: anEntry [
|
||||
<category: 'filter'>
|
||||
"I have to decide if anEntry can pass or should be filtered out, I can
|
||||
access the logManager of anEntry to access the per process context"
|
||||
^ self subclassResponsibility
|
||||
]
|
||||
]
|
||||
|
||||
Object subclass: LogManager [
|
||||
| target areas |
|
||||
| target filter areas |
|
||||
<category: 'osmo-logging-core'>
|
||||
<comment: 'I handle the actual log invocation'>
|
||||
|
||||
|
|
Reference in New Issue