Hi,
Im developing an windows service app and Im having trouble making the 
SMSLib logging output.
I have log4j.properties on the same level as .exe file, I even tried to 
redirect it directly in the logger helper class of SMSLib, so it read from 
c:\

If I try this custom dll with the example .net app (ReadMessages), it works 
ok. It outputs the log the way i want, even the changed location of 
properties works ok.
If I use the same dll with my project, no log gets created. So Im thinking 
the only obvious difference is that my app is a windows service.

1/ 
What should i check to make it work? 
I would like to log AT commands as we have a problem with deleting of 
allready read SMS on one modem (they get read as fresh again and again, 
even that i have explicit deleteMessage() in my code...).

my log4j.properties is:

*log4j.logger.smslib=DEBUG, smslib*

*log4j.appender.smslib=org.apache.log4j.RollingFileAppender*
*log4j.appender.smslib.File=smslib.log*
*log4j.appender.smslib.layout=org.apache.log4j.PatternLayout*
*log4j.appender.smslib.layout.ConversionPattern=%-6r %d [%t] %-5p %C %x - 
%m%n*


2/ Also can anyone help me with how to specify log4j.properties for Logging 
Sink (RemotingAppender)? But this is a "bonus" question, as I have no 
output yet. :(

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/smslib/59f9ce47-21f2-439a-af4a-26b243678180%40googlegroups.com.

Reply via email to