// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package log4j;

import org.apache.log4j.Logger;

public class Test {
    public static void main(String[] args) {
        System.setProperty("log4j.configuration", "file:///C:/work/log4j.properties");
        Logger log = Logger.getLogger(Test.class);
        log.info("A1");
        log.info("B1\r\nB2");
        log.info("C1\r\nC2\r\nC3");
    }
}
