======================= What is Logging & Why? ======================= => The process of storing app execution details into a file/console is called as Logging. => Log messages will help us in understanding runtime behaviour of the application. => Using log msgs we can identify root cause of the exceptions. => To implement logging there are several logging frameworks available in the market. 1) Log4J 2) Log4J2 3) Logback 4) Logstash ===================== Logging Architecture ===================== 1) Logger 2) Layout 3) Appender => Logger is a predefined class and it is providing several methods to generate log msgs. ex: trace(), debug(), info(), warn(), error() Note: For every java class we will create one logger object. => Layout represents log msg pattern.