code: public static LoggingHandlerEnvironmentFacet create(final Log mavenLog,
                                                          final Class<? extends AbstractJaxbMojo> caller,
                                                          final String encoding) {
  
          // Check sanity
          Validate.notNull(mavenLog, "mavenLog");
          Validate.notNull(caller, "caller");
          Validate.notEmpty(encoding, "encoding");
  
          // Find the standard log prefix for the tool in question.
          final String logPrefix = caller.getClass().getCanonicalName().toUpperCase().contains("XJC")
                  ? "XJC"
                  : "SchemaGen";
  
          // All done.
          return new LoggingHandlerEnvironmentFacet(logPrefix, mavenLog, encoding, DEFAULT_LOGGER_NAMES);
      }
docs: Factory method creating a new LoggingHandlerEnvironmentFacet wrapping the supplied properties.
  
  @param mavenLog The active Maven Log.
  @param caller   The AbstractJaxbMojo subclass which invoked this LoggingHandlerEnvironmentFacet factory method.
  @param encoding The encoding used by the Maven Mojo subclass.
  @return A fully set up LoggingHandlerEnvironmentFacet