|
Just tried the latest the patch (I assume it's in
the latest CVS build), getting panics in smsbox:
2003-11-25 23:13:30 [0] INFO: Added logfile
`/var/log/kannel/smsbox.log' with level `0'. 2003-11-25 23:13:30 [0] PANIC:
Trying to fetch variable `access-log-time' in group `smsbox', not
allowed. 2003-11-25 23:13:30 [0] PANIC: ./smsbox [0x806b0d2] 2003-11-25
23:13:30 [0] PANIC: ./smsbox [0x805ddf3] 2003-11-25 23:13:30 [0] PANIC:
./smsbox [0x8052667] 2003-11-25 23:13:30 [0] PANIC: ./smsbox
[0x8052a08] 2003-11-25 23:13:30 [0] PANIC:
/lib/i686/libc.so.6(__libc_start_main+0x93) [0x402c6687] 2003-11-25 23:13:30
[0] PANIC: ./smsbox(strcpy+0x35) [0x804acb1]
Alex
----- Original Message -----
Sent: Monday, November 24, 2003 2:47
PM
Subject: [PATCH] custom access-log format
Hi list,
the attached patches is a feature add in terms
of customizing the access-log format for bearerbox. This will allow to use
custom format access-log lines using escape codes (commonly known from
the sms-service groups).
Here are the changes:
*
gw/bb_alog.c: handles the custom bearerbox access-log formating *
gw/bb_smscconn.c: moved log_sms() to gw/bb_alog.c:bb_alog_sms() *
gw/bearerbox.h: added bb_alog_ prototypes * gw/[sms|wap]box.c:
harmonized access-log config directive reading *
gwlib/accesslog.[ch]: alog_open() changed to indicate if markers should be
written to access-log file. If no markers are set, then the default
timestamp prefix is not written, allowing users to individually set the
timestamp in their custom access-log format. * gwlib/cfg.def: added
config directives 'access-log-time' to indicate if localtime or gmt should
be used within access-log, 'access-log-format' holding the escape code
formated line to log, 'access-log-clean' (boolean) indicating if standard
markers shoould be avoided and hence the access-log should be
"clean".
Which means you can use this core group for bearerbox in
your configuration:
group = core admin-port =
13000 smsbox-port = 13001 admin-password = bar
... access-log = "/var/log/kannel/access.log"
access-log-clean = yes #access-log-time = gmt
access-log-format = "%t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] [from:%p]
[to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]"
... store-file = "/var/log/kannel/kannel.store"
which would
cause bearerbox to log in our "default" access-log style.
Please
try and have a vote on it. If no vetos occur, I'll commit this to
cvs.
Stipe
mailto:[EMAIL PROTECTED] ------------------------------------------------------------------- Wapme
Systems AG
M�nsterstr. 248 40470 D�sseldorf, NRW,
Germany
phone: +49.211.74845.0 fax: +49.211.74845.299
mailto:[EMAIL PROTECTED] http://www.wapme-systems.de/ -------------------------------------------------------------------
-----BEGIN
PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.2
(Cygwin)
mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -----END
PGP PUBLIC KEY BLOCK-----
|