AlgorithmFactory loggers

Issue #65 closed
Alexander Altergot created an issue

org.jose4j.jwa.AlgorithmFactory instances create loggers this way

this.log = LoggerFactory.getLogger(getClass() + "->" + type.getSimpleName());

Class.toString():

    public String toString() {
        return (isInterface() ? "interface " : (isPrimitive() ? "" : "class "))
            + getName();
    }

It would be better to follow loggers naming convention and prevent "class " prefix. For instance:

this.log = LoggerFactory.getLogger(getClass().getName() + "->" + type.getSimpleName());

Comments (4)

  1. Log in to comment