@@ -239,7 +239,7 @@ to customise what is logged.
239239 */
240240 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
241241
242- Logger log = LogManager.getLogger();
242+ Logger log = LogManager.getLogger(App.class );
243243
244244 @Logging
245245 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -256,7 +256,7 @@ to customise what is logged.
256256 * /
257257 public class AppLogEvent implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
258258
259- Logger log = LogManager.getLogger();
259+ Logger log = LogManager.getLogger(AppLogEvent.class );
260260
261261 @Logging (logEvent = true)
262262 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -315,7 +315,7 @@ You can set a Correlation ID using `correlationIdPath` attribute by passing a [J
315315 */
316316 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
317317
318- Logger log = LogManager.getLogger();
318+ Logger log = LogManager.getLogger(App.class );
319319
320320 @Logging(correlationIdPath = "/headers/my_request_id_header")
321321 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -364,7 +364,7 @@ for known event sources, where either a request ID or X-Ray Trace ID are present
364364 */
365365 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
366366
367- Logger log = LogManager.getLogger();
367+ Logger log = LogManager.getLogger(App.class );
368368
369369 @Logging(correlationIdPath = CorrelationIdPathConstants.API_GATEWAY_REST)
370370 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -417,7 +417,7 @@ You can append your own keys to your existing logs via `appendKey`.
417417 */
418418 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
419419
420- Logger log = LogManager.getLogger();
420+ Logger log = LogManager.getLogger(App.class );
421421
422422 @Logging(logEvent = true)
423423 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -449,7 +449,7 @@ You can remove any additional key from entry using `LoggingUtils.removeKeys()`.
449449 */
450450 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
451451
452- Logger log = LogManager.getLogger();
452+ Logger log = LogManager.getLogger(App.class );
453453
454454 @Logging(logEvent = true)
455455 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -484,7 +484,7 @@ this means that custom keys can be persisted across invocations. If you want all
484484 */
485485 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
486486
487- Logger log = LogManager.getLogger();
487+ Logger log = LogManager.getLogger(App.class );
488488
489489 @Logging(clearState = true)
490490 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
@@ -545,7 +545,7 @@ specific fields from received event due to security.
545545 */
546546 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
547547
548- Logger log = LogManager.getLogger();
548+ Logger log = LogManager.getLogger(App.class );
549549
550550 static {
551551 ObjectMapper objectMapper = new ObjectMapper();
@@ -575,7 +575,7 @@ via `samplingRate` attribute on annotation.
575575 */
576576 public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
577577
578- Logger log = LogManager.getLogger();
578+ Logger log = LogManager.getLogger(App.class );
579579
580580 @Logging(samplingRate = 0.5)
581581 public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
0 commit comments