@@ -50,18 +50,22 @@ Now I have the below dependencies in my pom.xml
5050 </dependency >
5151```
5252So when I call
53- ``` javascript
53+ ``` java
5454 LogFactory . getLogger(LogFactory . class). info(" LOCALIZED_MSG" , " Kiswani" );
55- output:
55+
56+ Output :
57+
5658 Nov 22 , 2016 6 : 54 : 07 PM io.github.rhkiswani.javaff.log. Slf4jLog info
5759 INFO : this is localized msg from messages_en. properties thanks for Mr Kiswani
5860```
5961
6062When I remove the dependencies from the pom.xml and run the same code I will get
6163
62- ``` javascript
64+ ``` java
6365 LogFactory . getLogger(LogFactory . class). info(" LOCALIZED_MSG" , " Kiswani" );
64- output:
66+
67+ Output :
68+
6569 Nov 22 , 2016 7 : 00 : 15 PM io.github.rhkiswani.javaff.log. DefaultLog info
6670 INFO : this is localized msg from messages_en. properties thanks for Mr Kiswani
6771 ```
@@ -80,15 +84,15 @@ When I remove the dependencies from the pom.xml and run the same code I will get
8084 public class TestMain {
8185
8286 public static void main (String [] args ) {
83- // Any class is instance of ConsoleException will be handled here
87+ // Any instance of ConsoleException will be handled here
8488 ExceptionHandlersFactory . instance(). add(ConsoleException . class, new ExceptionHandler () {
8589 @Override
8690 public void handle (Throwable t ) {
8791 System . out. println(" ConsoleException handler" );
8892 }
8993 });
9094
91- // Any class is instance of MailException will be handled here
95+ // Any instance of MailException will be handled here
9296 ExceptionHandlersFactory . instance(). add(MailException . class, new ExceptionHandler () {
9397 @Override
9498 public void handle (Throwable t ) {
@@ -141,11 +145,15 @@ When I remove the dependencies from the pom.xml and run the same code I will get
141145
142146``` java
143147 LogFactory . getLogger(LogFactory . class). info(" LOCALIZED_MSG" , " Kiswani" );
144- output : INFO : this is localized msg from messages_en. properties thanks for Mr Kiswani
148+
149+ Output :
150+ INFO : this is localized msg from messages_en. properties thanks for Mr Kiswani
145151```
146152
147153``` java
148154 LogFactory . getLogger(LogFactory . class). info(" normal msg num {0} date {1}" , Integer . MAX_VALUE , new Date ());
155+
156+ Output :
149157 INFO : normal msg num 2 ,147 ,483 ,647 date 11 / 22 / 16 6 : 06 PM
150158```
151159
@@ -157,6 +165,7 @@ When I remove the dependencies from the pom.xml and run the same code I will get
157165 System . out. println(FormatUtil . format(new Date (), " yyyy-MM-dd" ));
158166 System . out. println(FormatUtil . format(Integer . MAX_VALUE ));
159167
168+ Output :
160169 Mr Mohamed Kiswani
161170 11 / 22 / 16 6 : 16 PM
162171 2016 - 11 - 22
@@ -168,6 +177,7 @@ When I remove the dependencies from the pom.xml and run the same code I will get
168177 System . out. println(JsonHandlerFactory . getJsonHandler(TestMain . class). toJson(new Employee (1000 )));
169178 output : {" id" : 0 ," name" : null ," empId" : 1000 }
170179 ```
180+
171181 ```java
172182 System . out. println(JsonHandlerFactory . getJsonHandler(TestMain . class). fromJson(" {\" id\" :100,\" name\" :null,\" empId\" :1000}" , Employee . class));
173183 output: Employee [id= 100 ]
0 commit comments