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

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

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

Logger.errorMessage介绍

暂无

代码示例

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

  1. public void print(String str) {
  2. try {
  3. if (str != null) {
  4. out.write(str.getBytes());
  5. }
  6. } catch (IOException e) {
  7. LOGGER.errorMessage("内容({0})输入时出现异常:。", e, str);
  8. }
  9. }

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

  1. private CommandGoalExecutor newInstance(String className2) {
  2. try {
  3. return (CommandGoalExecutor) Class.forName(className2)
  4. .newInstance();
  5. } catch (Exception e) {
  6. LOGGER.errorMessage("加载类<{0}>时出现异常!", e, className2);
  7. throw new RuntimeException(e);
  8. }
  9. }

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

  1. protected void operatorErrorLog(String sql, DataAccessException exception,
  2. Object... parameters) {
  3. logger.errorMessage("DbOperatorId:[{0}],执行的错误sql:[{1}],参数:[{2}]",
  4. exception, uuid.toString(), sql, paramsToString(parameters));
  5. }

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

  1. public void execute(Context context) {
  2. try {
  3. WebContext webContext = (WebContext) context;
  4. webContext.getResponse().sendRedirect(path);
  5. } catch (Exception e) {
  6. logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
  7. e.getMessage());
  8. }
  9. }

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

  1. public void execute(Context context) {
  2. try {
  3. WebContext webContext = (WebContext) context;
  4. webContext.getResponse().sendRedirect(path);
  5. } catch (Exception e) {
  6. logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
  7. e.getMessage());
  8. }
  9. }

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

  1. public void operationComplete(ChannelFuture future) throws Exception {
  2. if (!future.isSuccess()) {
  3. LOGGER.errorMessage("连接服务端{0}:{1}发生失败", future.cause(), remoteHost, remotePort);
  4. } else {
  5. connected();
  6. }
  7. }

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

  1. public Collection<T> delete(Collection<T> objects) {
  2. try {
  3. basicDaoService.delete(objects);
  4. } catch (Exception e) {
  5. logger.errorMessage("删除对象集合失败",e);
  6. }
  7. return null;
  8. }

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

  1. public T[] save(T[] objects) {
  2. try {
  3. return (T[]) basicDaoService.save(objects);
  4. } catch (Exception e) {
  5. logger.errorMessage("保存对象数组失败",e);
  6. }
  7. return null;
  8. }

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

  1. public T[] delete(T[] objects) {
  2. try {
  3. return (T[]) basicDaoService.delete(objects);
  4. } catch (Exception e) {
  5. logger.errorMessage("删除对象数组失败",e);
  6. }
  7. return null;
  8. }

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

  1. public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
  2. throws Exception {
  3. logger.errorMessage("服务端收到异常",cause);
  4. ctx.fireExceptionCaught(cause);
  5. }

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

  1. public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
  2. throws Exception {
  3. logger.errorMessage("服务端收到异常", cause);
  4. ctx.fireExceptionCaught(cause);
  5. }

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

  1. public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
  2. throws Exception {
  3. logger.errorMessage("客户端收到异常", cause);
  4. ctx.fireExceptionCaught(cause);
  5. }
  6. }

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

  1. public Collection<T> update(Collection<T> objects) {
  2. try {
  3. return (Collection<T>) basicDaoService.update(objects);
  4. } catch (Exception e) {
  5. logger.errorMessage("更新对象集合失败",e);
  6. }
  7. return null;
  8. }

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

  1. public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
  2. throws Exception {
  3. logger.errorMessage("客户端收到异常", cause);
  4. ctx.fireExceptionCaught(cause);
  5. }
  6. }

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

  1. private void stopServers(){
  2. for(String name:serverMaps.keySet()){
  3. try {
  4. serverMaps.get(name).stop();
  5. } catch (Exception e) {
  6. logger.errorMessage("执行默认服务端停止程序时出错,服务端名:{0}", e,name);
  7. }
  8. }
  9. }

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

  1. public void execute(Context context) {
  2. try {
  3. WebContext webContext = (WebContext) context;
  4. HttpServletRequest request = webContext.getRequest();
  5. request.getRequestDispatcher(path).forward(request,
  6. webContext.getResponse());
  7. } catch (Exception e) {
  8. logger.errorMessage("Forward到地址[{}]出错,错误原因:{}", e, path,
  9. e.getMessage());
  10. }
  11. }

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

  1. private <T> Map<String, Object>[] convertBeanToArray(List<T> params) {
  2. Map<String, Object>[] batchArgs = new Map[params.size()];
  3. for (int j = 0; j < params.size(); j++) {
  4. try {
  5. batchArgs[j] = convertMap(params.get(j));
  6. } catch (Exception e) {
  7. LOGGER.errorMessage("pojo对象转换Map出错", e);
  8. throw new DslRuntimeException(e);
  9. }
  10. }
  11. return batchArgs;
  12. }

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

  1. public static void updateResponse(String eventId, Event event) {
  2. // 如果该eventId已不在列表之中,那么该event也许是之前已被超时清理了
  3. if (!responseMap.containsKey(eventId)) {
  4. String serviceId = event.getServiceRequest().getServiceId();
  5. TinyRequestHasTimeOutException e = new TinyRequestHasTimeOutException(
  6. eventId, serviceId);
  7. logger.errorMessage(e.getMessage());
  8. throw e;
  9. }
  10. BlockingQueue<Event> queue = responseMap.get(eventId);
  11. queue.add(event);
  12. }

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

  1. private void addStaticClass(XmlNode totalConfig) {
  2. List<XmlNode> list = totalConfig.getSubNodes(STATIC_CLASS_NAME);
  3. if (list != null) {
  4. for (XmlNode node : list) {
  5. try {
  6. templateEngine.registerStaticClassOperator(new XmlNodeStaticClassOperator(node));
  7. } catch (Exception e) {
  8. LOGGER.errorMessage("加载用户注册的静态类出错", e);
  9. }
  10. }
  11. }
  12. }

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

  1. public void run() {
  2. try {
  3. logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行开始...",
  4. multiThreadProcess.getName(), name);
  5. action();
  6. logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行结束",
  7. multiThreadProcess.getName(), name);
  8. } catch (Exception e) {
  9. logger.errorMessage(e.getMessage(), e);
  10. }
  11. multiThreadProcess.threadDone();
  12. }

相关文章