Re: Debugging logs

2003-12-30 Thread J.Mohamed Zahoor

 is your smsbox config group has a log-file config directive and
 log-level = 0 set, then all debug() messages will be logged there. 
 
 Your invocation call causes to dump log in level 1 which is info() and
 higher to stderr.
 
 Stipe
 

This is my smsbox config...


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = access.log

./zahoor


---
Debugging is twice as hard as writing the code in the first place.
 Therefore, if you write the code as cleverly as possible, you are,
 by definition, not smart enough to debug it. - Brian W. Kernighan




Re: Debugging logs

2003-12-30 Thread Phuah Yee Keat
If you want your debug() to come out in stderr, use
smsbox -v 0 smskannel.conf
If you want your debug() to come out in /tmp/smsbox.log

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
log-file = /tmp/smsbox.log
log-level = 0
#access-log = access.log
Cheers.
Phuah Yee Keat
J.Mohamed Zahoor wrote:

is your smsbox config group has a log-file config directive and
log-level = 0 set, then all debug() messages will be logged there. 

Your invocation call causes to dump log in level 1 which is info() and
higher to stderr.
Stipe



This is my smsbox config...

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = access.log
./zahoor

---
Debugging is twice as hard as writing the code in the first place.
 Therefore, if you write the code as cleverly as possible, you are,
 by definition, not smart enough to debug it. - Brian W. Kernighan




Re: Debugging logs

2003-12-29 Thread Stipe Tolj
J.Mohamed Zahoor wrote:
 
 Hi all
 I want to dump debug mesages when an sms reaches our smsbox from
 an SMSC through the bearerbox.
 I tried starting smsbox with the following option, but in vain.
 smsbox -v 1 -D sms smskannel.conf
 I want to see all the debug messages in the code which is of the
 form
 debug(sms 
 What is wrong... iam i starting the smsbox with correct arguments..??
 Please enlighten..

is your smsbox config group has a log-file config directive and
log-level = 0 set, then all debug() messages will be logged there. 

Your invocation call causes to dump log in level 1 which is info() and
higher to stderr.

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-