Package net.sf.redmine_mylyn.common.logging

Examples of net.sf.redmine_mylyn.common.logging.ILogService


          }
        }
      }
     
    } catch (NullPointerException e) {
      ILogService log = RedmineUiPlugin.getLogService(getClass());
      log.error(e, Messages.ERRMSG_CANT_FILL_MARKAS_MENU);
    } catch (CoreException e) {
      ILogService log = RedmineUiPlugin.getLogService(getClass());
      log.error(e, Messages.ERRMSG_CANT_FILL_MARKAS_MENU);
    }
   
    return statusMap;
  }
View Full Code Here


            model.save(new NullProgressMonitor());
          }

                   
        } catch (CoreException e) {
          ILogService log = RedmineUiPlugin.getLogService(getClass());
          log.error(e, Messages.ERRMSG_CANT_SET_ATTRIBUTE_VALUE_X, attributeName);
        }
      }
    }
  }
View Full Code Here

        JAXBContext ctx = JAXBContext.newInstance(getClass());
        Marshaller m = ctx.createMarshaller();
        m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
        m.marshal(this, out);
      } catch(JAXBException e) {
        ILogService log = RedmineApiPlugin.getLogService(JaxbParser.class);
        RedmineApiErrorException exc = new RedmineApiErrorException(Messages.ERRMSG_CONFIGURATION_SERIALIZATION_FAILED, e);
        log.error(e, exc.getMessage());
        throw exc;
      }
    }
  }
View Full Code Here

        ctx.reset();
        ctx.putProperty("rmc.logfile", path.toString()); //$NON-NLS-1$
       
        configurator.doConfigure(getClass().getResourceAsStream("/logback.xml")); //$NON-NLS-1$
      } catch (JoranException e) {
        ILogService logService = LogServiceImpl.getInstance(RedmineCommonPlugin.getDefault().getBundle(), LogWriter.class);
        logService.error(e, "Logback configuration failed"); //$NON-NLS-1$
      }
    }
  }
View Full Code Here

        if(field!=null) {
          try {
            setValue(taskAttribute, field.get(issue));
          } catch (Exception e) {
            IStatus status = RedmineCorePlugin.toStatus(e, Messages.ERRMSG_CANT_READ_PROPERTY_X, redmineAttribute.name());
            ILogService log = RedmineCorePlugin.getLogService(IssueMapper.class);
            log.error(e, status.getMessage());
            throw new CoreException(status);
          }
        } else {
          switch (redmineAttribute) {
          case WATCHERS:
View Full Code Here

              }
            }
          }
        } catch (Exception e) {
          IStatus status = RedmineCorePlugin.toStatus(e, Messages.ERRMSG_CANT_READ_PROPERTY_X, redmineAttribute.name());
          ILogService log = RedmineCorePlugin.getLogService(IssueMapper.class);
          log.error(e, status.getMessage());
          throw new CoreException(status);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.common.logging.ILogService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.