Skip to content

Commit

Permalink
Feat: Support web gateway config in biz module (#206)
Browse files Browse the repository at this point in the history
* feat: support_module_web_gateway_config

* feat: add koupleless logger
  • Loading branch information
gaosaroma authored Dec 2, 2024
1 parent 86eb82d commit ed8a207
Show file tree
Hide file tree
Showing 34 changed files with 1,052 additions and 75 deletions.
5 changes: 5 additions & 0 deletions koupleless-app-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<groupId>com.alipay.sofa.koupleless</groupId>
<artifactId>koupleless-common</artifactId>
</dependency>
<dependency>
<groupId>com.alipay.sofa.koupleless</groupId>
<artifactId>koupleless-ext-autoconfigure</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alipay.sofa.koupleless.common.log;

import org.slf4j.Logger;
import org.slf4j.Marker;

/**
* @author lianglipeng.llp@alibaba-inc.com
* @version $Id: KouplelessLogger.java, v 0.1 2024年11月08日 17:30 立蓬 Exp $
*/
public class KouplelessLogger implements Logger {

private final Logger logger;

public KouplelessLogger(Logger logger) {
this.logger = logger;
}

@Override
public String getName() {
return logger.getName();
}

@Override
public boolean isTraceEnabled() {
return logger.isTraceEnabled();
}

@Override
public void trace(String msg) {
logger.trace(msg);
}

@Override
public void trace(String format, Object arg) {
logger.trace(format, arg);
}

@Override
public void trace(String format, Object arg1, Object arg2) {
logger.trace(format, arg1, arg2);
}

@Override
public void trace(String format, Object... arguments) {
logger.trace(format, arguments);
}

@Override
public void trace(String msg, Throwable t) {
logger.trace(msg, t);
}

@Override
public boolean isTraceEnabled(Marker marker) {
return logger.isTraceEnabled();
}

@Override
public void trace(Marker marker, String msg) {
logger.trace(marker, msg);
}

@Override
public void trace(Marker marker, String format, Object arg) {
logger.trace(marker, format, arg);
}

@Override
public void trace(Marker marker, String format, Object arg1, Object arg2) {
logger.trace(marker, format, arg1, arg2);
}

@Override
public void trace(Marker marker, String format, Object... argArray) {
logger.trace(marker, format, argArray);
}

@Override
public void trace(Marker marker, String msg, Throwable t) {
logger.trace(marker, msg, t);
}

@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}

@Override
public void debug(String msg) {
logger.debug(msg);
}

@Override
public void debug(String format, Object arg) {
logger.debug(format, arg);
}

@Override
public void debug(String format, Object arg1, Object arg2) {
logger.debug(format, arg1, arg2);
}

@Override
public void debug(String format, Object... arguments) {
logger.debug(format, arguments);
}

@Override
public void debug(String msg, Throwable t) {
logger.debug(msg, t);
}

@Override
public boolean isDebugEnabled(Marker marker) {
return logger.isDebugEnabled(marker);
}

@Override
public void debug(Marker marker, String msg) {
logger.debug(marker, msg);
}

@Override
public void debug(Marker marker, String format, Object arg) {
logger.debug(marker, format, arg);
}

@Override
public void debug(Marker marker, String format, Object arg1, Object arg2) {
logger.debug(marker, format, arg1, arg2);
}

@Override
public void debug(Marker marker, String format, Object... arguments) {
logger.debug(marker, format, arguments);
}

@Override
public void debug(Marker marker, String msg, Throwable t) {
logger.debug(marker, msg, t);
}

@Override
public boolean isInfoEnabled() {
return logger.isInfoEnabled();
}

@Override
public void info(String msg) {
logger.info(msg);
}

@Override
public void info(String format, Object arg) {
logger.info(format, arg);
}

@Override
public void info(String format, Object arg1, Object arg2) {
logger.info(format, arg1, arg2);
}

@Override
public void info(String format, Object... arguments) {
logger.info(format, arguments);
}

@Override
public void info(String msg, Throwable t) {
logger.info(msg, t);
}

@Override
public boolean isInfoEnabled(Marker marker) {
return logger.isInfoEnabled();
}

@Override
public void info(Marker marker, String msg) {
logger.info(marker, msg);
}

@Override
public void info(Marker marker, String format, Object arg) {
logger.info(marker, format, arg);
}

@Override
public void info(Marker marker, String format, Object arg1, Object arg2) {
logger.info(marker, format, arg1, arg2);
}

@Override
public void info(Marker marker, String format, Object... arguments) {
logger.info(marker, format, arguments);
}

@Override
public void info(Marker marker, String msg, Throwable t) {
logger.info(marker, msg, t);
}

@Override
public boolean isWarnEnabled() {
return logger.isWarnEnabled();
}

@Override
public void warn(String msg) {
logger.warn(msg);
}

@Override
public void warn(String format, Object arg) {
logger.warn(format, arg);
}

@Override
public void warn(String format, Object... arguments) {
logger.warn(format, arguments);
}

@Override
public void warn(String format, Object arg1, Object arg2) {
logger.warn(format, arg1, arg2);
}

@Override
public void warn(String msg, Throwable t) {
logger.warn(msg, t);
}

@Override
public boolean isWarnEnabled(Marker marker) {
return logger.isWarnEnabled(marker);
}

@Override
public void warn(Marker marker, String msg) {
logger.warn(marker, msg);
}

@Override
public void warn(Marker marker, String format, Object arg) {
logger.warn(marker, format, arg);
}

@Override
public void warn(Marker marker, String format, Object arg1, Object arg2) {
logger.warn(marker, format, arg1, arg2);
}

@Override
public void warn(Marker marker, String format, Object... arguments) {
logger.warn(marker, format, arguments);
}

@Override
public void warn(Marker marker, String msg, Throwable t) {
logger.warn(marker, msg, t);
}

@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}

@Override
public void error(String msg) {
logger.error(msg);
}

@Override
public void error(String format, Object arg) {
logger.error(format, arg);
}

@Override
public void error(String format, Object arg1, Object arg2) {
logger.error(format, arg1, arg2);
}

@Override
public void error(String format, Object... arguments) {
logger.error(format, arguments);
}

@Override
public void error(String msg, Throwable t) {
logger.error(msg, t);
}

@Override
public boolean isErrorEnabled(Marker marker) {
return logger.isErrorEnabled(marker);
}

@Override
public void error(Marker marker, String msg) {
logger.error(marker, msg);
}

@Override
public void error(Marker marker, String format, Object arg) {
logger.error(marker, format, arg);
}

@Override
public void error(Marker marker, String format, Object arg1, Object arg2) {
logger.error(marker, format, arg1, arg2);
}

@Override
public void error(Marker marker, String format, Object... arguments) {
logger.error(marker, format, arguments);
}

@Override
public void error(Marker marker, String msg, Throwable t) {
logger.error(marker, msg, t);
}
}
Loading

0 comments on commit ed8a207

Please sign in to comment.