0

logger.debug("This is completed detail of Shipping" + Price + orderId + ProductId + Country+ deliveryDate);

getting the error : "use the built-in formatting to construct this argument" 2nd argument is not in use 3nd argument is not in use 4nd argument is not in use 5nd argument is not in use

Maujood
  • 1
  • 1
  • 5
  • If this is SLF4J or Log4J 2, use place holders. For instance: `logger.debug("This is completed detail of Shipping {} {} {} {} {}", Price, orderId, ProductId, Country, deliveryDate);`. Each `{}` must have a value after the message. You can also add an additional argument for an exception. – Rob Spoor Feb 03 '22 at 10:21
  • Thanks its working fine – Maujood Feb 09 '22 at 10:32

0 Answers0