Hi Tom, Marina,
I implemented category-specific logging level property described in issue
1338
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1338
I introduced "toplink.logging.level.<category>" property in which <category>
is the string defined in SessionLog like below.
public static final String SQL = "sql";
public static final String TRANSACTION = "transaction";
public static final String EVENT = "event";
public static final String CONNECTION = "connection";
public static final String QUERY = "query";
public static final String CACHE = "cache";
public static final String PROPAGATION = "propagation";
public static final String SEQUENCING = "sequencing";
public static final String EJB = "ejb";
public static final String DMS = "dms";
public static final String EJB_OR_METADATA = "ejb_or_metadata";
public static final String WEAVER = "weaver";
public static final String PROPERTIES = "properties";
If a user put a property like "toplink.logging.level.sql" with valid level
value, this is set to SessionLog with setLevel(int level, String category)
method.
Most expected usecase of this property is that users want to see only SQL
logs without other verbose log. this is now possible with
toplink.logging.level.sql=FINE
I also added category-specific log level facility to DefaultSessionLog class
like JavaLog because DefaultSessionLog is the mostly used one in Java SE
environment.
Please review this and let me know if I missed something.
I confirmed that this new property works as expected both with JavaLog and
DefaultSessionLog.
Thanks,
Wonseok