@@ -154,12 +154,24 @@ public function getWebservice($name)
154154 * Returns a logger instance
155155 *
156156 * @return \Psr\Log\LoggerInterface
157+ *
158+ * @deprecated 1.4.0 Use getLogger() instead.
157159 */
158160 public function logger ()
159161 {
160162 return $ this ->logger ;
161163 }
162164
165+ /**
166+ * Returns a logger instance
167+ *
168+ * @return \Psr\Log\LoggerInterface
169+ */
170+ public function getLogger ()
171+ {
172+ return $ this ->logger ;
173+ }
174+
163175 /**
164176 * Returns the connection name used in the configuration
165177 *
@@ -175,7 +187,8 @@ public function configName()
175187 *
176188 * @param bool|null $enable whether to turn logging on or disable it. Use null to read current value.
177189 * @return bool
178- * @deprecated 2.0.0 Use enableQueryLogging(), disableQueryLogging() and getQueryLogging() instead.
190+ *
191+ * @deprecated 1.4.0 Use enableQueryLogging()/disableQueryLogging()/isQueryLoggingEnabled() instead.
179192 */
180193 public function logQueries ($ enable = null )
181194 {
@@ -211,11 +224,11 @@ public function disableQueryLogging()
211224 }
212225
213226 /**
214- * Get the current state of query logging for the driver
227+ * Check if query logging is enabled.
215228 *
216229 * @return bool
217230 */
218- public function getQueryLogging ()
231+ public function isQueryLoggingEnabled ()
219232 {
220233 return $ this ->_logQueries ;
221234 }
@@ -258,7 +271,7 @@ public function __debugInfo()
258271 return [
259272 'client ' => $ this ->getClient (),
260273 'logger ' => $ this ->logger (),
261- 'query_logging ' => $ this ->getQueryLogging (),
274+ 'query_logging ' => $ this ->isQueryLoggingEnabled (),
262275 'webservices ' => array_keys ($ this ->_webservices )
263276 ];
264277 }
0 commit comments