Package net.sf.jlogmicro.util.logging

Examples of net.sf.jlogmicro.util.logging.Logger.severe()


  final private static RuntimeException handleError(String method,
      Throwable e) {
    Common.debugErr(e.getMessage());
    //#ifdef DLOGGING
    Logger logger = Logger.getLogger("View");
    logger.severe(method + " ", e);
    //#endif
    return new RuntimeException(e.getMessage());
  }

  protected int getScrollPosition(int height, int scrollHeight) {
View Full Code Here


  final private static RuntimeException handleError(String method,
      Throwable e) {
    Common.debugErr(e.getMessage());
    //#ifdef DLOGGING
    Logger logger = Logger.getLogger("View");
    logger.severe(method + " ", e);
    //#endif
    return new RuntimeException(e.getMessage());
  }

  protected int getScrollPosition(int height, int scrollHeight) {
View Full Code Here

          try {
            value = new String(bvalue, "UTF-8");
          } catch (UnsupportedEncodingException e) {
            value = new String(bvalue);
            //#ifdef DLOGGING
            logger.severe("cannot convert value=" + value, e);
            //#endif
          }
          ((TextField)item).setString(value);
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("set string " + ((TextField)item).getString());}
View Full Code Here

          if (finestLoggable) {logger.finest("set string " + ((TextField)item).getString());}
          //#endif
        }
      } catch (IOException e) {
        //#ifdef DLOGGING
        logger.severe("IOException reading selected.", e);
        //#endif
      }
    }
    if (dis != null) {
      try { dis.close(); } catch (IOException e) {}
View Full Code Here

          try {
            bvalue = value.getBytes("UTF-8");
          } catch (UnsupportedEncodingException e) {
            bvalue = value.getBytes();
            //#ifdef DLOGGING
            logger.severe("cannot store value=" + value, e);
            //#endif
          }
          dout.write( bvalue, 0, bvalue.length );
          //#ifdef DLOGGING
          if (finestLoggable) {logger.finest("set string " + item.getLabel() + "," + ((TextField)item).getString());}
View Full Code Here

          if (finestLoggable) {logger.finest("set string " + item.getLabel() + "," + ((TextField)item).getString());}
          //#endif
        }
      } catch (IOException e) {
        //#ifdef DLOGGING
        logger.severe("IOException storing selected.", e);
        //#endif
      }
    }
    //#ifdef DLOGGING
    if (finestLoggable) {logger.finest("bout.toByteArray().length=" + bout.toByteArray().length);}
View Full Code Here

        //#endif
      }
    } catch(Exception e) {
      //#ifdef DLOGGING
      Logger logger = Logger.getLogger("UiUtil");
      logger.severe("Could not get image " + imagePath, e);
      //#endif
      System.err.println("Error while getting mark image: " + e.toString());
    } finally {
      return image;
    }
View Full Code Here

      }
      text = text.replace(CNON_BREAKING_SP, ' ');
    } catch (Throwable t) {
      //#ifdef DLOGGING
      Logger logger = Logger.getLogger("EncodingUtil");
            logger.severe("replaceSpChars error ", t);
      //#endif
            System.out.println("replaceSpChars error " + t + "," +
                     t.getMessage());
    }
    return text;
View Full Code Here

      }
      text = new String(ntext, 0, jc);
    } catch (Throwable t) {
      //#ifdef DLOGGING
      Logger logger = Logger.getLogger("EncodingUtil");
            logger.severe("replaceSpUniWinChars error ", t);
      //#endif
            System.out.println("replaceSpUniWinChars error " + t + "," +
                     t.getMessage());
    }
    return text;
View Full Code Here

          s = s.substring(0, index01) + new String(achar) +
                s.substring(index02 + 1);
        } catch (NumberFormatException e) {
          //#ifdef DLOGGING
          Logger logger = Logger.getLogger("EncodingUtil");
          logger.severe("replaceNumEntity NumberFormatException error  for " + snum, e);
          //#endif
          System.out.println("replaceNumEntity error " + e + "," +
                     e.getMessage());
          return s;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.