log4j is the underlying physical logging framework.
AOP allows you to intercept Class/Method calls and log accordingly either using log4j,
or a facade
pattern such as commons logging or (recommended) slf4j.
Using AOP, you can enforce logging, or performance
testing or a wealth of other things
without the programmer having to do it.
WP