@@ -31,15 +31,15 @@ public static String printGsonObject(final Object obj){
3131 }
3232
3333 public static void debug (String string , Class aClass ){
34- LOGGER .debug (String .format ("%s %s" , String . valueOf ( new Date () ), "From " + aClass .getName () + ": " + string ));
34+ LOGGER .debug (String .format ("%s %s" , new Date (), "From " + aClass .getName () + ": " + string ));
3535 }
3636
3737 public static void debug (Object obj , Class aClass ){
38- LOGGER .debug (String .format ("%s %s" , String . valueOf ( new Date () ), "From " + aClass .getName () + ": " + GSON .toJson (obj )));
38+ LOGGER .debug (String .format ("%s %s" , new Date (), "From " + aClass .getName () + ": " + GSON .toJson (obj )));
3939 }
4040
4141 public static void info (String string , Class aClass ){
42- String log = String .format ("%s %s" , String . valueOf ( new Date () ), "From " + aClass .getName () + ": " + string );
42+ String log = String .format ("%s %s" , new Date (), "From " + aClass .getName () + ": " + string );
4343 LOGGER .info (log );
4444 if (INFO_FUNCTION != null ) {
4545 StringBuilder stringBuilder = new StringBuilder ();
@@ -51,7 +51,7 @@ public static void info(String string, Class aClass){
5151 }
5252
5353 public static void info (Object obj , Class aClass ){
54- String log = String .format ("%s %s" , String . valueOf ( new Date () ), "From " + aClass .getName () + ": " + GSON .toJson (obj ));
54+ String log = String .format ("%s %s" , new Date (), "From " + aClass .getName () + ": " + GSON .toJson (obj ));
5555 LOGGER .info (log );
5656 if (INFO_FUNCTION != null ) {
5757 StringBuilder stringBuilder = new StringBuilder ();
@@ -63,7 +63,7 @@ public static void info(Object obj, Class aClass){
6363 }
6464
6565 public static void info (String string ){
66- String log = String .format ("%s %s" , String . valueOf ( new Date () ), string );
66+ String log = String .format ("%s %s" , new Date (), string );
6767 LOGGER .info (log );
6868 if (INFO_FUNCTION != null ) {
6969 StringBuilder stringBuilder = new StringBuilder ();
@@ -75,7 +75,7 @@ public static void info(String string){
7575 }
7676
7777 public static void info (Object obj ){
78- String log = String .format ("%s %s" , String . valueOf ( new Date () ), GSON .toJson (obj ));
78+ String log = String .format ("%s %s" , new Date (), GSON .toJson (obj ));
7979 LOGGER .info (log );
8080 if (INFO_FUNCTION != null ) {
8181 StringBuilder stringBuilder = new StringBuilder ();
@@ -87,7 +87,7 @@ public static void info(Object obj){
8787 }
8888
8989 public static void error (String message ){
90- String error = String .format ("%s %s" , String . valueOf ( new Date () ), message + "\r \n " + ThreadStackUtils .getStackInfo ());
90+ String error = String .format ("%s %s" , new Date (), message + "\r \n " + ThreadStackUtils .getStackInfo ());
9191 LOGGER .error (error );
9292 if (ERROR_FUNCTION != null ) {
9393 StringBuilder stringBuilder = new StringBuilder ();
@@ -109,7 +109,7 @@ public static void error(String message, Object object){
109109 EXECUTOR_SERVICE .execute (() -> ERROR_FUNCTION .apply (stringBuilder .append (message ).append ("\r \n " ).append (ThreadStackUtils .getStackInfo ()).toString ()));
110110 }
111111 } else {
112- String error = String .format ("%s %s" , String . valueOf ( new Date () ), message + "\r \n " + ThreadStackUtils .getStackInfo ());
112+ String error = String .format ("%s %s" , new Date (), message + "\r \n " + ThreadStackUtils .getStackInfo ());
113113 LOGGER .error (error , object );
114114 if (ERROR_FUNCTION != null ) {
115115 StringBuilder stringBuilder = new StringBuilder ();
@@ -132,7 +132,7 @@ public static void error(String message, Exception e){
132132 EXECUTOR_SERVICE .execute (() -> ERROR_FUNCTION .apply (stringBuilder .append (message ).append ("\r \n " ).append (ThreadStackUtils .getStackInfo (e )).toString ()));
133133 }
134134 } else {
135- String error = String .format ("%s %s" , String . valueOf ( new Date () ), message + "\r \n " + ThreadStackUtils .getStackInfo (e ));
135+ String error = String .format ("%s %s" , new Date (), message + "\r \n " + ThreadStackUtils .getStackInfo (e ));
136136 LOGGER .error (error , e );
137137 if (ERROR_FUNCTION != null ) {
138138 StringBuilder stringBuilder = new StringBuilder ();
0 commit comments