if (properties == null)
throw new IllegalArgumentException ("null input: properties");
// verbosity level:
final int level;
{
final String _level = properties.getProperty (PROPERTY_VERBOSITY_LEVEL,
DEFAULT_VERBOSITY_LEVEL);
level = Logger.stringToLevel (_level);
}
// verbosity filter:
final Set filter;
{
final String _filter = properties.getProperty (PROPERTY_VERBOSITY_FILTER);
Set temp = null;
if (_filter != null)
{
final StringTokenizer tokenizer = new StringTokenizer (_filter, COMMA_DELIMITERS);
if (tokenizer.countTokens () > 0)
{
temp = new HashSet (tokenizer.countTokens ());
while (tokenizer.hasMoreTokens ())
{
temp.add (tokenizer.nextToken ());
}
}
}
filter = temp;
}
return Logger.create (level, null, appName, filter, base);