title: log4j: abbreviate/shorten package names
body: <p>How would i abbreviate/shorten package names in log generated using log4j. i.e. instead of <code>com.longpackage.anotherpackage.lastpackage.MyClass</code> i want <code>c.l.a.l.MyClass</code>. I have seen this in <a href="http://www.jfrog.com/products.php" rel="noreferrer">Artifactory</a> logs, but can't figure how to achieve this using log4j.</p>