Skip to content

Commit f7803ba

Browse files
author
Igor Polevoy
committed
#604 Implement ability to plug a custom logging filter - oops!
1 parent 9c59a6e commit f7803ba

File tree

1 file changed

+8
-0
lines changed
  • activejdbc/src/main/java/org/javalite/activejdbc/logging

1 file changed

+8
-0
lines changed

activejdbc/src/main/java/org/javalite/activejdbc/logging/LogFilter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,16 @@ public static void log(Logger logger, LogLevel logLevel, String log, Object para
137137
switch (logLevel){
138138
case DEBUG:
139139
logger.debug(log, param1, param2);
140+
break;
140141
case INFO:
141142
logger.info(log, param1, param2);
143+
break;
142144
case WARNING:
143145
logger.warn(log, param1, param2);
146+
break;
144147
case ERROR:
145148
logger.error(log, param1, param2);
149+
break;
146150
default:
147151
}
148152
}
@@ -158,12 +162,16 @@ public static void log(Logger logger, LogLevel logLevel, String log, Object... p
158162
switch (logLevel){
159163
case DEBUG:
160164
logger.debug(log, params);
165+
break;
161166
case INFO:
162167
logger.info(log, params);
168+
break;
163169
case WARNING:
164170
logger.warn(log, params);
171+
break;
165172
case ERROR:
166173
logger.error(log, params);
174+
break;
167175
default:
168176
}
169177
}

0 commit comments

Comments
 (0)