RE: ECCN Question -- Apache Log4J 1.2
Thanks so much, Curt. -Original Message- From: Curt Arnold [mailto:curt.ar...@gmail.com] On Behalf Of Curt Arnold Sent: Tuesday, May 18, 2010 6:56 PM To: Log4J Users List Subject: Re: ECCN Question -- Apache Log4J 1.2 Export status of Apache software is at http://www.apache.org/licenses/exports/. Apache log4j is not listed as it is not known to contain cryptographic functionality or to be specially designed to use other software with cryptographic functionality. Please see the disclaimer on that page and consider my further comments covered by that disclaimer. On May 18, 2010, at 7:13 PM, Erin Clark wrote: Hi All: I'm assisting a client with the export classification of their product and the subject product utilizes Apache Log4J 1.2. Do you know who might be the correct developer(s) for this open source code? If it's you all, do you happen to know what the Export Control Classification Number (ECCN) for this code? If you don't know the ECCN, can you please respond to the following questions at your convenience? a. Does the code perform cryptographic functions (i.e., encryption/decryption)? Not that I am aware of. b.Does the code contain any cryptographic algorithms (i.e., 3DES, Diffie-Helman, Blowfish, Rijndael, RC4, RSA) (whether or not these algorithms are actually being used by the software)? Not that I am aware of. c. Is the code capable of interfacing with, calling to, using, invoking or enabling/disabling the cryptographic features within other software or within the underlying platform in any way? The SMTPAppender has a configurable string property that specifies the protocol to be used and which is passed down to the java.mail API. The value smtps has no special meaning to log4j, but does to java.mail and would result in use of an SMTP+SSL transport. As the value is passed through log4j to the lower level API without special treatment, log4j is not specifically designed to use encryption. We are just we are aware it can happen with some values. In the same manner, if any FileAppender is configured to use a encrypted filesystem, the underlying system will perform encryption. d.Is the code capable of performing message digesting/hashing (i.e., MD5, RIPEMD, SHA, Tiger), fixed data compression or authentication? Not that I'm aware of. The log4j extras companion (distributed separately from log4j 1.2.x), does call the Java API for Gzip and Zip compression of log files. e. Does the code contain/utilize and open cryptographic interface (OCI), where the cryptographic capabilities of the code are user-accessible and/or modifiable? (See below for a more detailed definition of OCI.) Not that I am aware of. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
RE: Doubt about log4j configuration and OCI
Thanks... I also have found that if I put the database jar ojdbc14-10.2.0.1.0.jar in tomcat lib folder, it workd properly!! -Mensaje original- De: Douglas E Wegscheid [mailto:douglas_e_wegsch...@whirlpool.com] Enviado el: martes, 18 de mayo de 2010 14:39 Para: Log4J Users List CC: 'log4j-user@logging.apache.org' Asunto: Re: Doubt about log4j configuration and OCI ahha. someone *has* done a JDBCAppender that will use an existing datasource. Take a look at http://www.boky.cc/2010/02/03/jdbcappender-for-log4j/ Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation. Exposito Aguilera, Francisco francisco.expos...@es.issworld.com wrote on 05/18/2010 08:14:04 AM: Hello, I have a doubt about how to configure log4j in order to avoid the error java.lang.UnsatisfiedLinkError: Native Library C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in another classloader I want log write the log in the same database as the other sql statements I need for my application. I have a DAO Connection class with this method: public static Connection getConnection() { InitialContext initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:/comp/env); DataSource dataSource = (DataSource) envContext.lookup(jdbc/testdb); return dataSource.getConnection(); } This method uses the DB info placed in META-INF/context.xml file: Resource name=jdbc/testdb auth=Container type=javax.sql.DataSource username= password= driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:oci:@DESARROLLO maxActive=20 maxIdle=24/ Then I have my log4j.xml files configured like that: appender name=db class=org.apache.log4j.jdbc.JDBCAppender param name=driver value=oracle.jdbc.driver.OracleDriver/ param name=URL value=jdbc:oracle:oci:@DESARROLLO/ param name=user value=/ param name=password value=/ param name=sql value=INSERT INTO TABLE.LOG4JTEST (Fecha,Clase,Prioridad,usuario,Mensaje) VALUES ( '%n%d{-MM-dd HH:mm:ss}','%C-%M(%L)','%p',SUBSTR('%m',1,INSTR('%m',':')-1),SUBSTR('%m',INS TR('%m',':')+2))/ param name=sql value=INSERT INTO FEXPOSITO.LOG4JTEST (Fecha,Clase,Prioridad,usuario,Mensaje) VALUES ( '%n%d{-MM-dd HH:mm:ss}','%C-%M(%L)','%p','%m','%m')/ /appender But when I execute the first log.debug statement (the connection class has been already executed), I receive the error java.lang.UnsatisfiedLinkError: Native Library C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in another classloader Any idea? Thanks in advance. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Logs from different web apps go to same file with log4j?!
Yes, they all log to a single file! Each application in its WEB-INF/lib has log4j-1.2.12.jar. All apps uses same library (jar) with base functionality classes, where the logger object is created, but there is nothing there that could mess up the autoconfiguration: logger = Logger.getLogger(this.getClass().getName()); And the there is no code like DOMConfigurator.configure(URL) - I'm the author of the code. Surprisingly, the situation above is happening only on one remote machine. We tested 3 other servers with the same configuration and version of Tomcat - all apps log to their own files. So, I didn't succeed to reproduce this behaviour on our servers and to observe at close look. :confused: -- View this message in context: http://old.nabble.com/Logs-from-different-web-apps-go-to-same-file-with-log4j-%21-tp28595472p28617875.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: I am trying to add chainsaw support to the eXist XML Database
Hi Scott, For my existing application, we are using log4j and we have log file appender. I want to use chainsaw as the log viewer and need to load the file automatically. How to configure chainsaw to open a file when chainsaw is started. Thanks in advance, Mohammed Scott Deboy wrote: Chainsaw does have a receiver that can parse regular text files (LogFilePatternReceiver, and VFSLogFilePatternReceiver, which supports jakarta-commons-vfs file systems). -- View this message in context: http://old.nabble.com/I-am-trying-to-add-chainsaw-support-to-the-eXist-XML-Database-tp26548991p28620483.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: I am trying to add chainsaw support to the eXist XML Database
Hi Scott, Thanks for your quick reply. My application is executable and will be distributed to users, my users also view logs. for example, if a user press view log button, I need to open chainsaw. As you said, I can configure in application-wide preferences screen, only after launching the chainsaw. I want to launch it pre-configured, like using command-line parameters when chainsaw main class is launched. Is there a way to send configuration file path as the command-line arguments? Thanks, Mohammed Scott Deboy wrote: you can specify the URL to the configuration file in the application-wide preferences screen - specifying the URL to your configuration will cause the configuration to be used each time Chainsaw is started. -- View this message in context: http://old.nabble.com/I-am-trying-to-add-chainsaw-support-to-the-eXist-XML-Database-tp26548991p28622012.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Tomcat Daily Log Rotation fails at app. level.
Hi Simon, Not sure whether this helps you or not, but the TimeAndSizeRollingAppender has a RollOnStartup switch I ended up using DateRollEnforced which works well since we restart some time after midnight: appender name=DailyFileLog class=org.apache.log4j.appender.TimeAndSizeRollingAppender param name=file value=${system.logdir}/nolij.log/ param name=DateRollEnforced value=true/ param name=DatePattern value=.-MM-dd/ param name=MaxFileSize value=200MB/ param name=MaxRollFileCount value=35/ !-- -UAlbany ScavengeInterval 5 min (in milliseconds) -- param name=ScavengeInterval value=30/ param name=BufferedIO value=false/ param name=CompressionAlgorithm value=GZ/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d [%t] %-5p %c - %m%n/ /layout /appender Implementation simply involved including your jar in place of apache-log4j-extras-1.0.jar, and swapping our previous appender config. with one of your examples (appropiately configured for our environment). The other added benefit is the scavenge option. This places control over removal of rotated application log files into the hands of the application team. Thank you very much, -Ryan - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org