Skip to content

Commit a80dcd4

Browse files
authored
Merge pull request #949 from jeffgbutler/just-info-logging
Add Info Logging Level
2 parents d9d5cb8 + 075dedf commit a80dcd4

File tree

21 files changed

+80
-99
lines changed

21 files changed

+80
-99
lines changed

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/Log.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,4 +26,6 @@ public interface Log {
2626
void debug(String s);
2727

2828
void warn(String s);
29+
30+
void info(String s);
2931
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/commons/JakartaCommonsLoggingImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,4 +51,8 @@ public void warn(String s) {
5151
log.warn(s);
5252
}
5353

54+
@Override
55+
public void info(String s) {
56+
log.info(s);
57+
}
5458
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/jdk14/Jdk14LoggingImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,4 +53,8 @@ public void warn(String s) {
5353
log.log(Level.WARNING, s);
5454
}
5555

56+
@Override
57+
public void info(String s) {
58+
log.log(Level.INFO, s);
59+
}
5660
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/log4j2/Log4j2AbstractLoggerImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,4 +62,8 @@ public void warn(String s) {
6262
log.logIfEnabled(FQCN, Level.WARN, MARKER, (Message) new SimpleMessage(s), null);
6363
}
6464

65+
@Override
66+
public void info(String s) {
67+
log.logIfEnabled(FQCN, Level.INFO, MARKER, (Message) new SimpleMessage(s), null);
68+
}
6569
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/log4j2/Log4j2Impl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,4 +59,8 @@ public void warn(String s) {
5959
log.warn(s);
6060
}
6161

62+
@Override
63+
public void info(String s) {
64+
log.info(s);
65+
}
6266
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/log4j2/Log4j2LoggerImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -56,4 +56,8 @@ public void warn(String s) {
5656
log.warn(MARKER, s);
5757
}
5858

59+
@Override
60+
public void info(String s) {
61+
log.info(MARKER, s);
62+
}
5963
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/nologging/NoLoggingImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,4 +48,8 @@ public void warn(String s) {
4848
// Do Nothing
4949
}
5050

51+
@Override
52+
public void info(String s) {
53+
// Do Nothing
54+
}
5155
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/slf4j/Slf4jImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -69,4 +69,8 @@ public void warn(String s) {
6969
log.warn(s);
7070
}
7171

72+
@Override
73+
public void info(String s) {
74+
log.info(s);
75+
}
7276
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/slf4j/Slf4jLocationAwareLoggerImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,4 +58,8 @@ public void warn(String s) {
5858
logger.log(MARKER, FQCN, LocationAwareLogger.WARN_INT, s, null, null);
5959
}
6060

61+
@Override
62+
public void info(String s) {
63+
logger.log(MARKER, FQCN, LocationAwareLogger.INFO_INT, s, null, null);
64+
}
6165
}

core/mybatis-generator-core/src/main/java/org/mybatis/generator/logging/slf4j/Slf4jLoggerImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,4 +51,8 @@ public void warn(String s) {
5151
log.warn(s);
5252
}
5353

54+
@Override
55+
public void info(String s) {
56+
log.info(s);
57+
}
5458
}

0 commit comments

Comments
 (0)