LogUtils.java 281 B

123456789101112131415161718
  1. package com.ozs.common.utils;
  2. /**
  3. * 处理并记录日志文件
  4. *
  5. * @author hx
  6. */
  7. public class LogUtils
  8. {
  9. public static String getBlock(Object msg)
  10. {
  11. if (msg == null)
  12. {
  13. msg = "";
  14. }
  15. return "[" + msg.toString() + "]";
  16. }
  17. }