How to write encrypted (!) lines to logfile ?

2014-12-19 Thread Ben Stover
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

How to AUTOMATICALLY append an EOL (\n) at the log.info(....) output?

2010-09-09 Thread Ben Stover
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

How to use a second log4j.properties file for a special java program?

2010-08-26 Thread Ben Stover
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

How to stop mail delivery but NOT unsubscribe from this mailing-list?

2010-08-19 Thread Ben Stover
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

How to show the current location of the log4j.properties file from inside Java?

2010-08-19 Thread Ben Stover
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