lombok.extern.log4j.Log4j.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(246)

本文整理了Java中lombok.extern.log4j.Log4j.<init>()方法的一些代码示例,展示了Log4j.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log4j.<init>()方法的具体详情如下:
包路径:lombok.extern.log4j.Log4j
类名称:Log4j
方法名:<init>

Log4j.<init>介绍

暂无

代码示例

代码示例来源:origin: timebusker/spring-boot

@Service
@Primary
@Log4j
public class BaseUserService implements UserService {

代码示例来源:origin: puppetlabs/europa

@Log4j
public class BaseDb
{
  protected static AttrDescription attr(String name, AttrType type) {
    return AttrDescription.builder()
      .attrName(name)
      .attrType(type)
      .build();
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
public class EuropaConfigurationProvider implements Provider<EuropaConfiguration>
{
  private EuropaConfiguration _europaConfiguration;

  public EuropaConfigurationProvider(EuropaConfiguration europaConfiguration)
  {
    _europaConfiguration = europaConfiguration;
  }

  @Override
  public EuropaConfiguration get() {
    return _europaConfiguration;
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
public class WebAppRoutes
{
  private static final RouteMatcher ROUTES = new RouteMatcher();

  public static RouteMatcher getRouteMatcher() {
    return ROUTES;
  }

  static {
    //Add the routes below this line
    //Ajax Routes
    ROUTES.add("GET", "/ajax", AjaxRequestHandler.class);
    ROUTES.add("POST", "/ajax", AjaxRequestHandler.class);
    ROUTES.add("POST", "/storage", AjaxRequestHandler.class);

    //Kubernetes health check
    ROUTES.add("GET", "/healthz", RegistryHealthCheck.class);

    ROUTES.setDefaultRequestHandler(DefaultRequestHandler.class);
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class RegistryDefault extends RegistryBase {
  public WebResponse handleRegistryRequest(EuropaRequestContext requestContext) {
    throw(new RegistryError("Invalid or unknown name",
                RegistryErrorCode.NAME_UNKNOWN));
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class RegistryManifestDelete extends RegistryBase {
  public WebResponse handleRegistryRequest(EuropaRequestContext requestContext) {
    WebResponse response = new WebResponse(200);
    return response;
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class RegistryLayerDelete extends RegistryBase {
  public WebResponse handleRegistryRequest(EuropaRequestContext requestContext) {
    WebResponse response = new WebResponse(200);
    return response;
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class RegistryVersionCheck extends RegistryBase {
  public WebResponse handleRegistryRequest(EuropaRequestContext requestContext) {
    WebResponse response = new WebResponse(200);
    response.setResponseHeader("Docker-Distribution-API-Version", "registry/2.0");
    return response;
  }
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

@Data
@Log4j
@AllArgsConstructor
public class GeneralResponse {
  private GeneralResponseState state;
  private String msg;
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class GetSslSettings extends AjaxHelper<EuropaRequestContext> {

  @Inject
  private SettingsDb _settingsDb;

  public GetSslSettings() {
    this.supportedHttpMethods.add(HTTPMethod.GET);
  }

  public Object get(AjaxRequest ajaxRequest, EuropaRequestContext requestContext) {
    return SslSettings.fromEuropaSettings(_settingsDb.listRootSettingsByType(EuropaSettingType.SSL));
  }
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

@SpringBootApplication
@EnableScheduling
@Log4j
public class KafkaRestSpringbootApplication {
  public static void main(String[] args) {
    log.info("+++++++++Kafka-zk Rest Application starting++++++++++");
    SpringApplication.run(KafkaRestSpringbootApplication.class, args);
  }
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

@Aspect
@Component
@Log4j
public class ExceptionLogAspect {
  @Pointcut("execution(public * org.gnuhpc.bigdata.exception..*.*(..))")
  public void exceptionLog() {
  }

  @Before("exceptionLog()")
  public void doBefore(JoinPoint joinPoint) throws Throwable {
    // 接收到请求,记录请求内容
    log.info("Exception happened!", (Exception) joinPoint.getArgs()[0]);
  }
}

代码示例来源:origin: brunocvcunha/instagram4j

/**
 * Request for getting a user's friendship status
 *
 * @author Akhmad Syaikhul Hadi (akhmad.hadi@gmail.com)
 */
@AllArgsConstructor
@Log4j
public class InstagramGetFriendshipRequest extends InstagramGetRequest<InstagramFriendshipStatus> {
  private long userId;

  @Override
  public String getUrl() {
    return "friendships/show/" + userId;
  }

  @Override
  @SneakyThrows
  public InstagramFriendshipStatus parseResult(int statusCode, String content) {
    return this.parseJson(content, InstagramFriendshipStatus.class);
  }
}

代码示例来源:origin: puppetlabs/europa

/**
 * Pipeline component representing a manual promotion gate
 */
@Log4j
@Data
public class PCManualPromotionGate extends PipelineComponent {
  /**
   * Always ends pipeline execution
   *
   * @param promotedImage Ignored
   * @return Always an empty Optional
   */
  @Override
  public Optional<PromotedImage> execute(PromotedImage promotedImage) {
    return (Optional.empty());
  }
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

/**
 * Created by gnuhpc on 2017/7/23.
 */
@Getter
@Setter
@Log4j
@ToString
public class AddPartition {
  String topic;
  int numPartitionsAdded;
  String replicaAssignment;
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

/**
 * Created by gnuhpc on 2017/7/21.
 */
@Log4j
@Getter
@Setter
public class TopicMeta {
  private String topicName;
  private int partitionCount;
  private int replicationFactor;
  private List<TopicPartitionInfo> topicPartitionInfos;
  private Properties topicCustomConfigs;

  public TopicMeta(String topicName){
    this.topicName = topicName;
  }

}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class MovePipelineComponent extends AjaxHelper<EuropaRequestContext>
{
  @Inject
  private PipelineDb _db;

  public MovePipelineComponent()
  {
    this.supportedHttpMethods.add(HTTPMethod.POST);
  }

  public Object get(AjaxRequest ajaxRequest, EuropaRequestContext requestContext)
  {
    // TODO - implement
    String domain = requestContext.getOwnerDomain();
    return null;
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class SslSettingsProvider implements Provider<SslSettings>
{
  @Inject
  private SettingsDb _settingsDb;

  private SslSettings _sslSettings;

  public SslSettingsProvider()
  {

  }

  public synchronized SslSettings get()
  {
    List<EuropaSetting> settings = _settingsDb.listRootSettingsByType(EuropaSettingType.SSL);
    _sslSettings = SslSettings.fromEuropaSettings(settings);
    return _sslSettings;
  }
}

代码示例来源:origin: puppetlabs/europa

@Log4j
@Singleton
public class ListAuthTokens extends AjaxHelper<EuropaRequestContext>
{
  @Inject
  private TokenAuthDb _tokenAuthDb;
  @Inject
  private PermissionCheck _permissionCheck;

  public ListAuthTokens()
  {
    this.supportedHttpMethods.add(HTTPMethod.GET);
  }

  public Object get(AjaxRequest ajaxRequest, EuropaRequestContext requestContext)
  {
    _permissionCheck.check(ajaxRequest.getOperation(), requestContext);
    return _tokenAuthDb.getTokens(requestContext.getOwnerDomain(),
                   new PageIterator().pageSize(1000));
  }
}

代码示例来源:origin: gnuhpc/Kafka-zk-restapi

@Log4j
@RestControllerAdvice
public class KafkaExceptionHandler {
  @ExceptionHandler(ApiException.class)
  public RestErrorResponse kafkaApiException(ApiException ex) {
    RestErrorResponse.Builder responseBuilder = new RestErrorResponse.Builder();
    return  responseBuilder.setStatus(HttpStatus.INTERNAL_SERVER_ERROR)
        .setCode(KafkaErrorCode.UNKNOWN.ordinal())
        .setMessage("Api Exception happened!")
        .setDeveloperMessage(ex.getMessage())
        .build();
  }
}

相关文章

Log4j类方法