This repository contains an initial sketch of an Apache Logging Admin API. See the "New API for log level manipulation" thread for more details.
The purpose of the API is to allow the programmatic configuration of the logging backend in an implementation independent way.
import org.apache.logging.admin.LoggingAdmin;
public final class Main {
private static final Object TOKEN = new Object();
public static void main(String[] args) {
int i = 0;
while (i < args.length) {
if ("--logLevel".equals(args[i]) && ++i < args.length) {
LoggingAdmin admin = LoggingAdmin.getInstance(TOKEN);
admin.setLevel("", args[i]);
}
i++;
}
}
}