org.slf4j.impl.Log4jLoggerAdapter Java Examples

The following examples show how to use org.slf4j.impl.Log4jLoggerAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AvroOrcConvertCreator.java    From datacollector with Apache License 2.0 6 votes vote down vote up
@Override
protected void addNecessaryJarsToJob(Configuration conf) {
  // add jars for classes that are NOT in hive-exec 1.x jar, which will screw up ORC conversion because it
  // contains ancient versions of various Hive classes that ORC uses under the covers
  MapreduceUtils.addJarsToJob(
      conf,
      AvroToOrcRecordConverter.class,
      AvroToOrcSchemaConverter.class,
      AvroTypeUtil.class,
      Log4jLoggerAdapter.class,
      Logger.class,
      Decompressor.class,
      ErrorCode.class
  );
  // add all other required dependencies
  MapreduceUtils.addJarsToJob(conf, true, "hive-storage-api", "orc-core", "avro");
}
 
Example #2
Source File: DynamicLog4jAdapterLogger.java    From tddl5 with Apache License 2.0 5 votes vote down vote up
@Override
protected org.apache.log4j.Logger getLog4jLogger(Logger logger) {
    Log4jLoggerAdapter adapter = (Log4jLoggerAdapter) logger.getDelegate();
    try {
        return (org.apache.log4j.Logger) log4jField.get(adapter);
    } catch (Exception e) {
        throw new TddlNestableRuntimeException(e);
    }
}