Re: Debugging logs

Phuah Yee Keat <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.