org.tinygroup.logger.Logger.logMessage()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中org.tinygroup.logger.Logger.logMessage()方法的一些代码示例,展示了Logger.logMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.logMessage()方法的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称:Logger
方法名:logMessage

Logger.logMessage介绍

[英]不对message进行格式化直接输出
[中]不对消息进行格式化直接输出

代码示例

代码示例来源:origin: org.tinygroup/org.tinygroup.springutil

private void addUrl(String urlString) {
  if (!configs.contains(urlString)) {
    configs.add(urlString);
    LOGGER.logMessage(LogLevel.INFO, "添加Spring配置文件:{urlString}",
        urlString);
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.springutil

public void removeUrl(String urlString) {
  if (configs.contains(urlString)) {
    configs.remove(urlString);
    LOGGER.logMessage(LogLevel.INFO, "删除Spring配置文件:{urlString}", urlString);
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.cepcore

public void afterRemoteHandle(Event event) {
  LOGGER.logMessage(LogLevel.DEBUG, "远程后置AOP开始处理");
  for (CEPCoreAopAdapterContainer adapterContainer : afterRemoteList) {
    adapterContainer.handle(event);
  }
  LOGGER.logMessage(LogLevel.DEBUG, "远程后置AOP处理完成");
}

代码示例来源:origin: org.tinygroup/service

public void beforeHandle(Object[] args, ServiceProxy sp) {
  logger.logMessage(LogLevel.INFO, "开始执行SerciveAop前置处理器");
  for (int i = 0; i < beforeEnableList.size(); i++) {
    ServiceAopAdapter adapter = beforeEnableList.get(i);
    logger.logMessage(LogLevel.INFO, "开始执行SerciveAop前置处理器{0}",adapter.getClass().toString());
    adapter.handle(args, sp);
    logger.logMessage(LogLevel.INFO, "执行SerciveAop前置处理器{0}完成",adapter.getClass().toString());
  }
  logger.logMessage(LogLevel.INFO, "执行SerciveAop前置处理器完成");
}

代码示例来源:origin: org.tinygroup/service

public void afterHandle(Object[] args, ServiceProxy sp) {
  logger.logMessage(LogLevel.INFO, "开始执行SerciveAop后置处理器");
  for (int i = 0; i < afterEnableList.size(); i++) {
    ServiceAopAdapter adapter = afterEnableList.get(i);
    logger.logMessage(LogLevel.INFO, "开始执行SerciveAop后置处理器{0}",adapter.getClass().toString());
    adapter.handle(args, sp);
    logger.logMessage(LogLevel.INFO, "执行SerciveAop后置处理器{0}完成",adapter.getClass().toString());
  }
  logger.logMessage(LogLevel.INFO, "执行SerciveAop后置处理器完成");
}

代码示例来源:origin: org.tinygroup/fileresolver

public void process() {
  logger.logMessage(LogLevel.INFO, "开始加载SpringBeans配置文件");
  SpringUtil.regSpringConfigXml(fileObjects);
  SpringUtil.refresh();
  logger.logMessage(LogLevel.INFO, "SpringBeans配置文件加载完成");
}

代码示例来源:origin: org.tinygroup/fileresolver

public void callBack(FileObject fileObject) {
    logger.logMessage(LogLevel.INFO, "正在扫描路径[{0}]...", fileObject.getAbsolutePath());
    resolveFileObject(fileObject);
    logger.logMessage(LogLevel.INFO, "路径[{0}]扫描完成。", fileObject.getAbsolutePath());
  }
});

代码示例来源:origin: org.tinygroup/org.tinygroup.serviceprocessor

private void initProcessors() {
  LOGGER.logMessage(LogLevel.DEBUG, "初始化ServiceProcessor");
  processor = new ServiceEventProcessorImpl();
  processor.setServiceProvider(provider);
  LOGGER.logMessage(LogLevel.DEBUG, "初始化ServiceProcessor完成");
}

代码示例来源:origin: org.tinygroup/command

private void init() {
  logger.logMessage(LogLevel.DEBUG, "初始化插件命令行管理器");
  command = CommandSystem.getInstance(PLUGIN_INSTANCE_NAME);
  consoleCommander = new ConsoleCommander(command);
  consoleCommander.start();
  logger.logMessage(LogLevel.DEBUG, "初始化插件命令行管理器成功");
}

代码示例来源:origin: org.tinygroup/org.tinygroup.weblayerbase

protected void init() {
  params.applyDefaultValues();
  logger.logMessage(LogLevel.INFO, "Upload Parameters: {}", params);
  fileUpload = getFileUpload(params, false);
}

代码示例来源:origin: org.tinygroup/org.tinygroup.templateengine

private TemplateFunction createFunction(XmlNode node) throws Exception {
  if (node == null) {
    return null;
  }
  String beanName = node.getAttribute("name");
  LOGGER.logMessage(LogLevel.INFO, "正在加载模板引擎的函数[{0}]", beanName);
  ClassLoader loader = this.getClass().getClassLoader();
  return BeanContainerFactory.getBeanContainer(loader).getBean(beanName);
}

代码示例来源:origin: org.tinygroup/service

public void registeService(ServiceRegistryItem serviceRegistryItem) {
  logger.logMessage(LogLevel.INFO, "添加服务[serviceId:{0}]",
      serviceRegistryItem.getServiceId());
  serviceIdMap.put(serviceRegistryItem.getServiceId(),
      serviceRegistryItem);
  serviceToServiceRegistryItem.put(serviceRegistryItem.getService(),
      serviceRegistryItem);
}

代码示例来源:origin: org.tinygroup/service

private void removeService(ServiceRegistryItem serviceRegistryItem) {
  if (serviceRegistryItem == null) {
    return;
  }
  logger.logMessage(LogLevel.INFO, "删除服务[serviceId:{0}]",
      serviceRegistryItem.getServiceId());
  serviceIdMap.remove(serviceRegistryItem.getServiceId());
  serviceToServiceRegistryItem.remove(serviceRegistryItem.getService());
}

代码示例来源:origin: org.tinygroup/weblayer

protected void init() {
  params.applyDefaultValues();
  logger.logMessage(LogLevel.INFO, "Upload Parameters: {}", params);
  fileUpload = getFileUpload(params, false);
}

代码示例来源:origin: org.tinygroup/org.tinygroup.database

private void clearSeq(List<String> clearsqls, Table table, Connection connection) throws SQLException {
  boolean isSeqExits = getAllSequence(connection, table.getSchema()).contains(getSeqName(table));
  if (isSeqExits) {
    clearsqls.add(String.format("DROP SEQUENCE %s", getSeqName(table)));
    logger.logMessage(LogLevel.WARN, "表格[{0}]在数据库中不存在,将清理残留的序列[{1}]", table.getName()
        , getSeqName(table));
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.tinydb

protected int[] executeBatchOperator(String[] sqls) throws TinyDbException {
  try {
    logger.logMessage(LogLevel.DEBUG, "DbOperatorId:[{0}],执行sql列表:{1}",
        uuid.toString(), sqlsToString(sqls));
    return jdbcTemplate.batchUpdate(sqls);
  } catch (DataAccessException e) {
    logger.errorMessage("DbOperatorId:[{0}],执行错误的sql列表:{1}", e,
        uuid.toString(), sqlsToString(sqls));
    throw new TinyDbException(e);
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.springmvc

public String resolveThemeName(HttpServletRequest request) {
  ThemeResolver themeResolver = RequestInstanceHolder
      .getMappingInstance().getCommonThemeResolver();
  if (themeResolver != null) {
    logger.logMessage(LogLevel.DEBUG,
        " invoke themeResolver.resolveThemeName() method that will proxy ["
            + themeResolver + "]");
    return themeResolver.resolveThemeName(request);
  }
  return null;
}

代码示例来源:origin: org.tinygroup/org.tinygroup.springmvc

public void setLocale(HttpServletRequest request,
           HttpServletResponse response, Locale locale) {
  LocaleResolver localeResolver = RequestInstanceHolder
      .getMappingInstance().getCommonLocaleResolver();
  if (localeResolver != null) {
    logger.logMessage(LogLevel.DEBUG,
        " invoke localeResolver.setLocale() method that will proxy ["
            + localeResolver + "]");
    localeResolver.setLocale(request, response, locale);
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.database

private void clearSeq(List<String> clearsqls, Table table, Connection connection) throws SQLException {
  boolean isSeqExits = getAllSequence(connection, table.getSchema()).contains(getSeqName(table));
  if (isSeqExits) {
    clearsqls.add(String.format("DROP SEQUENCE %s", getSeqName(table)));
    logger.logMessage(LogLevel.WARN, "表格[{0}]在数据库中不存在,将清理残留的序列[{1}]", table.getName()
        , getSeqName(table));
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.weblayerbase

public void filterWrapper(WebContext context, FilterHandler handler)
    throws IOException, ServletException {
  HttpServletRequest request = context.getRequest();
  HttpServletResponse response = context.getResponse();
  String servletPath = handler.getServletPath();
  List<Filter> matchFilters = getMatchFilters(servletPath, filterMap);
  logger.logMessage(LogLevel.DEBUG,
      "the pre wrapper httpFilters for the request path:[{0}] is [{1}]",
      servletPath, matchFilters);
  TinyFilterChain filterChain = new TinyFilterChain(matchFilters, handler);
  filterChain.doFilter(request, response);
}

相关文章