Hi Thanasis,

Negative, I ever try that but not help. I think "smslib" is just an
identifier that hold settings on that file only.

What I cannot figured out is, whatever I do with log4j, nothing is changed.

Those command line params are affect nothing (present or not):
-Dlog4j.debug=true
-Dlog4j.configuration="file:log4j.properties"
-Dlog4j.configuration="file:/home/aryo/smslib/log4j.properties"
-Dlog4j.configuration="file:///home/aryo/smslib/log4j.properties"

And whatever the content of log4j.properties is, it has no effect. Even
current log4.properties contains:
"this is wrong entry"
It's running as nothing is wrong.

That's why I desperated with this logging :(

If you need any files of mine, I can send it to you.

Thanks.


On Fri, Jun 12, 2009 at 18:36, Thanasis <[email protected]> wrote:

>
> 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.
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
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