Add util.log.LogConfiguration by thekid · Pull Request #12 · xp-framework/logging
$c= new LogConfiguration(new Properties('log.ini')); $cat= $c->category('default'); // Returns console, syslog and files $cat= $c->category('syslog'); // An appender as configured by "syslog" $all= $c->categories(); // ["default" => new LogCategory()->withAppenders(...), "syslog" => ... $name= 'does-not-exist'; $exists= $c->provides($name); // FALSE $cat= $c->category($name); // ***lang.IllegalArgumentException***