Log4domino

I try to use LOG4DOMNO a method for logging the code (java an LotusScript) in the agent!

It did not work!

Some of you use this pachage?

The error is:

09/04/2003 11.32.13 HTTP JVM: java.lang.ExceptionInInitializerError:

09/04/2003 11.32.13 HTTP JVM: java.lang.SecurityException: line.separator

09/04/2003 11.32.13 HTTP JVM: at lotus.notes.AgentSecurityManager.checkPropertyAccess(Unknown Source)

09/04/2003 11.32.13 HTTP JVM: at java.lang.System.getProperty(System.java:601)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.Layout.(Layout.java:24)

09/04/2003 11.32.13 HTTP JVM: at java.lang.Class.forName1(Native Method)

09/04/2003 11.32.13 HTTP JVM: at java.lang.Class.forName(Class.java:142)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.PropertyConfigurator.class$(PropertyConfigurator.java:81)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:624)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:595)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:502)

09/04/2003 11.32.13 HTTP JVM: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:410)

09/04/2003 11.32.13 HTTP JVM: at com.bekk.log4jext.domino.DominoConfigurator.configure(DominoConfigurator.java:161)

09/04/2003 11.32.13 HTTP JVM: at com.bekk.log4jext.domino.DominoConfigurator.configureAgent(DominoConfigurator.java:185)

09/04/2003 11.32.13 HTTP JVM: at agentUno.NotesMain(agentUno.java:20)

09/04/2003 11.32.13 HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown Source)

09/04/2003 11.32.13 HTTP JVM: at lotus.domino.NotesThread.run(NotesThread.java:208)

09/04/2003 11.34.41 Admin Process: Searching Administration Requests database

09/04/2003 11.39.27 Closed session for ADMIN ADMIN/NETEK Databases accessed: 3 Documents read: 0 Documents written: 0

Subject: LOG4DOMINO… you may look towards a security constraint…

Have you got any administrator rights needed…don’t log from a server to another through an agent running in server.

Subject: RE: LOG4DOMINO… you may look towards a security constraint…

Do you use LOG4DOMINO ion Domino6?Does it Working?

Thanks!

MaBo

Subject: yes, and did not detect bugg…

did you ?

Subject: RE: yes, and did not detect bugg…

Did not work!Can you send me the correct acces control for the log database and the application database,

and, if you can, can you send me an example,

my personal mail is: mabo_wfmc@libero.it

Thanks MaBo

Subject: not so easy… would have needed you answer my questions…

I think you’d better read the documentation; lotus domino is a complexe and so complete platform, and probably a little more than for developing java. It has a need to read documentation and as in java it owns great examples on the subject…

the java documentation you’ll find will guide you on every question you could have with log4domino… Log4Domino - Browse Files at SourceForge.net

hard to find more complete… lucky guy !

Subject: Log4Domino in lotusScript Agents…

Thanks! I use L4D in a Java Agent and all goes ok!Now I try to use it in a LotusScript Agent but I can’t understeand how should I use it!

I think I don’t have the library called libLSLog, but i think it is the libLogFacade… but i cannot understand how does it really works.

Can you Help me?

Would You send me at least the some lines of Lotus Script code for implementing L4D in lotus Scripts?

Thanks at all.

Subject: RE: Log4Domino in lotusScript Agents…

don’t forget to write Uselsx “*javacon” for being able to use the lsx LS2J class.

for instance

Uselsx “*javacon”

Dim mySession As JavaSession

Sub Initialize

Dim myClass As JavaClass

Dim myObject As JavaObject

Set mySession = New JavaSession()

’ Get Java “tester” class

Set myClass = mySession.GetClass(“Mortgage;”)

’ Call Java Constructor

Set myObject = myClass.CreateObject

’ Get Java property

header = myObject.H

and so on… but i think your problems are little more with lotus agents.

If you want help from Lotus Community be a little more engaged in your questions; write your code lines for instance.