gpt4 book ai didi

com.openhtmltopdf.util.XRLog.init()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 04:43:05 27 4
gpt4 key购买 nike

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

XRLog.init介绍

暂无

代码示例

代码示例来源:origin: danfickle/openhtmltopdf

public static void init(String msg) {
  init(Level.INFO, msg);
}

代码示例来源:origin: danfickle/openhtmltopdf

public static synchronized void setLevel(String log, Level level) {
  if (initPending) {
    init();
  }
  loggerImpl.setLevel(log, level);
}

代码示例来源:origin: danfickle/openhtmltopdf

public static synchronized void log(String where, Level level, String msg) {
  if (initPending) {
    init();
  }
  if (isLoggingEnabled()) {
    loggerImpl.log(where, level, msg);
  }
}

代码示例来源:origin: danfickle/openhtmltopdf

public static synchronized void log(String where, Level level, String msg, Throwable th) {
  if (initPending) {
    init();
  }
  if (isLoggingEnabled()) {
    loggerImpl.log(where, level, msg, th);
  }
}

代码示例来源:origin: danfickle/openhtmltopdf

public static void main(String args[]) {
  try {
    XRLog.cascade("Cascade msg");
    XRLog.cascade(Level.WARNING, "Cascade msg");
    XRLog.exception("Exception msg");
    XRLog.exception("Exception msg", new Exception());
    XRLog.general("General msg");
    XRLog.general(Level.WARNING, "General msg");
    XRLog.init("Init msg");
    XRLog.init(Level.WARNING, "Init msg");
    XRLog.load("Load msg");
    XRLog.load(Level.WARNING, "Load msg");
    XRLog.match("Match msg");
    XRLog.match(Level.WARNING, "Match msg");
    XRLog.layout("Layout msg");
    XRLog.layout(Level.WARNING, "Layout msg");
    XRLog.render("Render msg");
    XRLog.render(Level.WARNING, "Render msg");
  } catch (Exception ex) {
    ex.printStackTrace();
  }
}

代码示例来源:origin: danfickle/openhtmltopdf

resolver.addFont(font.fontFile, font.family, font.weight, fontStyle, font.subset);
} catch (Exception e) {
  XRLog.init(Level.WARNING, "Font " + font.fontFile + " could not be loaded", e);

代码示例来源:origin: com.openhtmltopdf/openhtmltopdf-pdfbox

resolver.addFont(font.fontFile, font.family, font.weight, fontStyle, font.subset);
} catch (Exception e) {
  XRLog.init(Level.WARNING, "Font " + font.fontFile + " could not be loaded", e);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com