1
0
Fork 0

LogManager: Add per process variables for the context

E.g. to add the current imsi use:

self logManager context: 'imsi' value: IMSI
This commit is contained in:
Holger Hans Peter Freyther 2010-09-08 23:38:42 +08:00
parent 3bdc3fd4b7
commit 7da7dfdea0
1 changed files with 12 additions and 0 deletions

View File

@ -241,4 +241,16 @@ Object subclass: LogManager [
target print: anEntry
]
]
context: aString value: aValue [
| key |
key := Array with: 'LogArea' with: aString.
(ProcessVariable key: key) value: aValue.
]
contextValue: aString [
| key |
key := Array with: 'LogArea' with: aString.
^ (ProcessVariable key: key) value.
]
]