Hi,

I am not very expert on log4j, but I think that the logger name
("smslib") is missing from your config file (or rootLogger covers
everything?).
Why don't you try to modify the sample log4j config (found in /misc
directory)?

On Jun 12, 9:15 am, Aryo Sanjaya <[email protected]> wrote:
> Thanasis,
>
> Yes, I have 3.4.1, the latest version.
>
> And there is another problem with the logger on mine. The logger display
> INFO only, although the log4j.properties is set to DEBUG level.
>
> Here is my log4j.properties:
> log4j.rootLogger=DEBUG, A1
> log4j.appender.A1=org.apache.log4j.RollingFileAppender
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
> log4j.appender.A1.File=/home/aryo/smslib/smslib.log
> log4j.appender.A1.MaxFileSize=5000KB
> log4j.appender.A1.MaxBackupIndex=10
>
> log4j.properties are placed on classpath. I also try with log4j.xml version,
> but still not affecting. The smslib.log never be created.
>
> Command line:
>
> java -cp /home/aryo/smslib -Djava.library.path=/home/aryo/smslib/lib
> -Dsmsserver.configfile=/home/aryo/smslib/smslibwavecom.conf -jar
> /home/aryo/smslib/SMSLib341.jar
>
> I have try it with
> -Dlog4j.configuration=file:/home/aryo/smslib/log4j.properties
> And with -Dlog4j.debug=true, but nothing changed.
>
> With the same command, same libraries, the logger was working well on local
> machine.
>
> I desperate with the logger already, but then another problem appear, that
> need to show the log :)
>
> So if you don't mind, maybe we need to troubleshoot the log first.
>
>
>
> On Fri, Jun 12, 2009 at 12:38, Thanasis <[email protected]> wrote:
>
> > Alternatively, enable the log and post it here (or send it to me).
>
> > On Jun 12, 8:37 am, Thanasis <[email protected]> wrote:
> > > Hi Aryo,
>
> > > Are you using the latest version?
> > > In previous versions, some db errors were going unnoticed... I wonder
> > > if there is something wrong with the DB - maybe missing fields
> > > required by the latest versions??
>
> > > On Jun 12, 7:13 am, Aryo Sanjaya <[email protected]> wrote:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to