1
0
Fork 0

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:
Holger Hans Peter Freyther 2010-09-08 23:56:03 +08:00
parent 7da7dfdea0
commit 3b42385269
1 changed files with 13 additions and 1 deletions

View File

@ -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'>