aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-04-14 12:40:01 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-04-14 12:40:01 +0200
commit65dcb80ff981287e5c5581906131a9386737e9b1 (patch)
treef4ec9589959c55281975c140bbbc26f1d247fe65
parent9f364cbcd1f8c82a3fa8214aa9161615f7bcb7f4 (diff)
syslog: Improve the manual test case
-rw-r--r--LogTest.st26
1 files changed, 21 insertions, 5 deletions
diff --git a/LogTest.st b/LogTest.st
index 25680c4..b8f0558 100644
--- a/LogTest.st
+++ b/LogTest.st
@@ -36,19 +36,35 @@ Osmo.LogArea subclass: LogAreaSCCP [
]
Eval [
+ | syslog |
'123' logDebug: 'TEST' area: #sccp.
'123' logException: 'TEST' area: #sccp.
"SYSLOG"
- Object logManager target:
- (Osmo.LogTargetSyslog
- openlog: 'ow' option: 0 facility: Osmo.LogTargetSyslog LOG_USER).
- '123' logException: 'ABC' area: #sccp.
+ syslog := (Osmo.LogTargetSyslog
+ openlog: 'ow' option: 0 facility: Osmo.LogTargetSyslog LOG_USER).
+ syslog prefix: 'abc:'.
+ Object logManager target: syslog.
+
+
+ '123' logError: 'Error message' area: #sccp.
+
+ [
+ '123' error: 'ABC DEF'.
+ ] on: Error do: [:e |
+ e logException: 'Exception... ' area: #sccp.
+ ].
Object logManager target:
(Osmo.LogTargetSyslog
openlog: 'ow2' option: 0 facility: Osmo.LogTargetSyslog LOG_USER).
- '123' logException: 'ABC' area: #sccp.
+ '123' logError: 'Error message' area: #sccp.
+
+ [
+ '123' error: 'ABC DEF'.
+ ] on: Error do: [:e |
+ e logException: 'Exception... ' area: #sccp.
+ ].
]