eggjs / egg-logger
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -23,7 +23,7 @@
Loading
23 23
  agentLogName: '',
24 24
  errorLogName: '',
25 25
  concentrateError: 'duplicate',
26 -
  concentrateLoggerName: 'errorLogger',
26 +
  concentrateErrorLoggerName: 'errorLogger',
27 27
};
28 28
29 29
/**
@@ -50,8 +50,8 @@
Loading
50 50
   *   - {String} agentLogName - egg agent file logger name
51 51
   *   - {String} errorLogName - err common error logger name
52 52
   *   - {String} eol - end of line char
53 -
   *   - {String} [concentrateError = duplicate] - whether write error logger to `concentrateLoggerName` logger, `duplicate` / `redirect` / `ignore`
54 -
   *   - {String} [concentrateLoggerName = errorLogger] - concentrate logger name
53 +
   *   - {String} [concentrateError = duplicate] - whether write error logger to `concentrateErrorLoggerName` logger, `duplicate` / `redirect` / `ignore`
54 +
   *   - {String} [concentrateErrorLoggerName = errorLogger] - concentrate logger name
55 55
   * - customLogger
56 56
   */
57 57
  constructor(config) {
@@ -140,7 +140,7 @@
Loading
140 140
  setConcentrateError(name, logger) {
141 141
    // redirect ERROR log to errorLogger, except errorLogger itself
142 142
    if (name !== 'errorLogger') {
143 -
      const concentrateLogger = this.get(logger.options.concentrateLoggerName);
143 +
      const concentrateLogger = this.get(logger.options.concentrateErrorLoggerName);
144 144
      if (!concentrateLogger) return;
145 145
146 146
      switch (logger.options.concentrateError) {
Files Coverage
lib 97.36%
index.js 100.00%
Project Totals (14 files) 97.43%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading