ch.qos.logback.classic.Logger.<init>()方法的使用及代码示例

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

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

Logger.<init>介绍

暂无

代码示例

代码示例来源:origin: ch.qos.logback/logback-classic

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: ch.qos.logback/logback-classic

  1. /**
  2. * The default size of child list arrays. The JDK 1.5 default is 10. We use a
  3. * smaller value to save a little space.
  4. */
  5. Logger createChildByName(final String childName) {
  6. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  7. if (i_index != -1) {
  8. throw new IllegalArgumentException("For logger [" + this.name + "] child name [" + childName
  9. + " passed as parameter, may not include '.' after index" + (this.name.length() + 1));
  10. }
  11. if (childrenList == null) {
  12. childrenList = new CopyOnWriteArrayList<Logger>();
  13. }
  14. Logger childLogger;
  15. childLogger = new Logger(childName, this, this.loggerContext);
  16. childrenList.add(childLogger);
  17. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  18. return childLogger;
  19. }

代码示例来源:origin: ch.qos.logback/logback-classic

  1. childLogger = new Logger(lastPart, this, this.loggerContext);
  2. } else {
  3. childLogger = new Logger(name + CoreConstants.DOT + lastPart, this, this.loggerContext);

代码示例来源:origin: camunda/camunda-bpm-platform

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: camunda/camunda-bpm-platform

  1. Logger createChildByName(final String childName) {
  2. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  3. if (i_index != -1) {
  4. throw new IllegalArgumentException("For logger [" + this.name
  5. + "] child name [" + childName
  6. + " passed as parameter, may not include '.' after index"
  7. + (this.name.length() + 1));
  8. }
  9. if (childrenList == null) {
  10. childrenList = new ArrayList<Logger>(DEFAULT_CHILD_ARRAY_SIZE);
  11. }
  12. Logger childLogger;
  13. childLogger = new Logger(childName, this, this.loggerContext);
  14. childrenList.add(childLogger);
  15. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  16. return childLogger;
  17. }

代码示例来源:origin: camunda/camunda-bpm-platform

  1. childLogger = new Logger(lastPart, this, this.loggerContext);
  2. } else {
  3. childLogger = new Logger(name + CoreConstants.DOT + lastPart, this,
  4. this.loggerContext);

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new Hashtable<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. putObject(CoreConstants.EVALUATOR_MAP, new HashMap());
  9. size = 1;
  10. }

代码示例来源:origin: Nextdoor/bender

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: tony19/logback-android

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: tony19/logback-android

  1. Logger createChildByName(final String childName) {
  2. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  3. if (i_index != -1) {
  4. throw new IllegalArgumentException("For logger [" + this.name
  5. + "] child name [" + childName
  6. + " passed as parameter, may not include '.' after index"
  7. + (this.name.length() + 1));
  8. }
  9. if (childrenList == null) {
  10. childrenList = new CopyOnWriteArrayList<Logger>();
  11. }
  12. Logger childLogger;
  13. childLogger = new Logger(childName, this, this.loggerContext);
  14. childrenList.add(childLogger);
  15. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  16. return childLogger;
  17. }

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: io.virtdata/virtdata-lib-realer

  1. /**
  2. * The default size of child list arrays. The JDK 1.5 default is 10. We use a
  3. * smaller value to save a little space.
  4. */
  5. Logger createChildByName(final String childName) {
  6. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  7. if (i_index != -1) {
  8. throw new IllegalArgumentException("For logger [" + this.name + "] child name [" + childName
  9. + " passed as parameter, may not include '.' after index" + (this.name.length() + 1));
  10. }
  11. if (childrenList == null) {
  12. childrenList = new CopyOnWriteArrayList<Logger>();
  13. }
  14. Logger childLogger;
  15. childLogger = new Logger(childName, this, this.loggerContext);
  16. childrenList.add(childLogger);
  17. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  18. return childLogger;
  19. }

代码示例来源:origin: io.virtdata/virtdata-lib-realer

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new ConcurrentHashMap<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. this.frameworkPackages = new ArrayList<String>();
  11. }

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  1. /**
  2. * The default size of child list arrays. The JDK 1.5 default is 10. We use a
  3. * smaller value to save a little space.
  4. */
  5. Logger createChildByName(final String childName) {
  6. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  7. if (i_index != -1) {
  8. throw new IllegalArgumentException("For logger [" + this.name + "] child name [" + childName
  9. + " passed as parameter, may not include '.' after index" + (this.name.length() + 1));
  10. }
  11. if (childrenList == null) {
  12. childrenList = new CopyOnWriteArrayList<Logger>();
  13. }
  14. Logger childLogger;
  15. childLogger = new Logger(childName, this, this.loggerContext);
  16. childrenList.add(childLogger);
  17. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  18. return childLogger;
  19. }

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

  1. Logger createChildByName(final String childName) {
  2. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  3. if (i_index != -1) {
  4. throw new IllegalArgumentException("For logger [" + this.name
  5. + "] child name [" + childName
  6. + " passed as parameter, may not include '.' after index"
  7. + (this.name.length() + 1));
  8. }
  9. if (childrenList == null) {
  10. childrenList = new ArrayList<Logger>(DEFAULT_CHILD_ARRAY_SIZE);
  11. }
  12. Logger childLogger;
  13. childLogger = new Logger(childName, this, this.loggerContext);
  14. childrenList.add(childLogger);
  15. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  16. return childLogger;
  17. }

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

  1. public LoggerContext() {
  2. super();
  3. this.loggerCache = new Hashtable<String, Logger>();
  4. this.loggerContextRemoteView = new LoggerContextVO(this);
  5. this.root = new Logger(Logger.ROOT_LOGGER_NAME, null, this);
  6. this.root.setLevel(Level.DEBUG);
  7. loggerCache.put(Logger.ROOT_LOGGER_NAME, root);
  8. initEvaluatorMap();
  9. size = 1;
  10. }

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

  1. Logger createChildByName(final String childName) {
  2. int i_index = getSeparatorIndexOf(childName, this.name
  3. .length() + 1);
  4. if (i_index != -1) {
  5. throw new IllegalArgumentException("For logger [" + this.name
  6. + "] child name [" + childName
  7. + " passed as parameter, may not include '.' after index"
  8. + (this.name.length() + 1));
  9. }
  10. if (childrenList == null) {
  11. childrenList = new ArrayList<Logger>(DEFAULT_CHILD_ARRAY_SIZE);
  12. }
  13. Logger childLogger;
  14. childLogger = new Logger(childName, this, this.loggerContext);
  15. childrenList.add(childLogger);
  16. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  17. return childLogger;
  18. }

代码示例来源:origin: Nextdoor/bender

  1. /**
  2. * The default size of child list arrays. The JDK 1.5 default is 10. We use a
  3. * smaller value to save a little space.
  4. */
  5. Logger createChildByName(final String childName) {
  6. int i_index = LoggerNameUtil.getSeparatorIndexOf(childName, this.name.length() + 1);
  7. if (i_index != -1) {
  8. throw new IllegalArgumentException("For logger [" + this.name + "] child name [" + childName
  9. + " passed as parameter, may not include '.' after index" + (this.name.length() + 1));
  10. }
  11. if (childrenList == null) {
  12. childrenList = new CopyOnWriteArrayList<Logger>();
  13. }
  14. Logger childLogger;
  15. childLogger = new Logger(childName, this, this.loggerContext);
  16. childrenList.add(childLogger);
  17. childLogger.effectiveLevelInt = this.effectiveLevelInt;
  18. return childLogger;
  19. }

代码示例来源:origin: io.virtdata/virtdata-lib-realer

  1. childLogger = new Logger(lastPart, this, this.loggerContext);
  2. } else {
  3. childLogger = new Logger(name + CoreConstants.DOT + lastPart, this, this.loggerContext);

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  1. childLogger = new Logger(lastPart, this, this.loggerContext);
  2. } else {
  3. childLogger = new Logger(name + CoreConstants.DOT + lastPart, this, this.loggerContext);

相关文章