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:
parent
3bdc3fd4b7
commit
7da7dfdea0
|
@ -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.
|
||||
]
|
||||
]
|
||||
|
|
Reference in New Issue