Java Code Examples for com.creditease.ns.log.NsLog#info()
The following examples show how to use
com.creditease.ns.log.NsLog#info() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PrintUtil.java From ns4_frame with Apache License 2.0 | 6 votes |
public static void printDateStamp(NsLog log, String[] mes){ if (log != null){ log.info("┌ ┐"); log.info(" Time: "+new Date()); for (int i=0;i<mes.length;i++){ log.info(" "+i+": "+mes[i]); } log.info("└ ┘"); } else { System.out.println("┌ ┐"); System.out.println(" Time: "+new Date()); for (int i=0;i<mes.length;i++){ System.out.println(" "+i+": "+mes[i]); } System.out.println("└ ┘"); } }
Example 2
Source File: PrintUtil.java From ns4_frame with Apache License 2.0 | 6 votes |
public static void printDateStamp(NsLog log, List<String> mes){ if (log != null){ log.info("┌ ┐"); log.info(" Time: "+new Date()); for (int i=0;i<mes.size();i++){ log.info(" "+i+": "+mes.get(i)); } log.info("└ ┘"); } else { System.out.println("┌ ┐"); System.out.println(" Time: "+new Date()); for (int i=0;i<mes.size();i++){ System.out.println(" "+i+": "+mes.get(i)); } System.out.println("└ ┘"); } }
Example 3
Source File: PrintUtil.java From ns4_frame with Apache License 2.0 | 5 votes |
/** * @Title: printDateStamp * @Description: 打印时间戳 * @param @param log * @param @param mes * @return void * @throws */ public static void printDateStamp(NsLog log, String mes){ if (log != null){ log.info("┌ ┐"); log.info(" Time: "+new Date()); log.info(" Message: "+mes); log.info("└ ┘"); } else { System.out.println("┌ ┐"); System.out.println(" Time: "+new Date()); System.out.println(" Message: "+mes); System.out.println("└ ┘"); } }