How to write encrypted (!) lines to logfile ?
As far as I know the standard way of writing log output to logfiles is as plain human readable text. Is there a way to configure log4j to enrypt lines before writing? Or (re-)encrypt whole logfile after writing? The encryption should NOT take place IN the writing application but be configured inside log4j configuration. Ben - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
How to AUTOMATICALLY append an EOL ("\n") at the log.info("....") output?
As far as I found out all output initiated by an log.info(""); statement is written WITHOUT an EOL char. Ok, I could manually always append an \n as in: log.info("\n"); But this is unconvenient. Is there a way to tell Log4j to ALWAYS AUTOMATICALLY append an EOL on each log output? Ben - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
How to use a second log4j.properties file for a special java program?
Assume a default log4j.properties file is setup for a whole application server. Now I deploy a new, own java program into the application server which contains logging statements like log.info(""); as well. Currently the log output go to the default log file defined in the overall log4j.properties file. But I want to use another, different logfile. This should be defined (as far as I can see) in a second log4j.properties file. But how can I access this jog4j.properties file when creating the logger in the java program? Resp. how can I tell the environment to use another log4j.properties file ? Ben - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
How to show the current location of the log4j.properties file from inside Java?
Assume I use Log4j from inside a java program/bean and I want to find out which of the several log4j,properties files are currently used for log4j.configuration. Can I somehow get this information from inside the java program? I can think of a command like log.showpropfilelocation(); or similar. Is this possible? ben - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
How to stop mail delivery but NOT unsubscribe from this mailing-list?
I want to read postings in this mailing-list by using a web browser and to be able to post/send questions but I don't want to get all postings by email. Allmost all other mailing-lists offer a "stop-mail-delivery-but-not-unsubscribe" option for this. How can I achieve this for the logging.apache.org mailing-list? Ben - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org