How to use the error function from log4js

Find comprehensive JavaScript log4js.error code examples handpicked from public code repositorys.

456
457
458
459
460
461
462
463
464
465
                logger.info(`equalizer completed for - ${initialQuote}`);
                this.getClient().getEqualizer().releaseChannel(initialQuote);
            }
        })
        .catch((e) => {
            logger.error(`equalizer error - ${e.message}`);
            this.getClient().getEqualizer().releaseChannel(initialQuote);
        });
    }
}
fork icon0
star icon0
watch icon1

107
108
109
110
111
112
113
114
115
116
        marketsToSell[possibleMarket] = {
            price: sellPrice,
            amount: balance,
        };
    } catch (e) {
        logger.error(e.message);
    }
}

/** If there is no markets where shit coin can be sold */
fork icon0
star icon0
watch icon1

+ 3 other calls in file

129
130
131
132
133
134
135
136
137
138
} else {
  res.send('support get and post only.');
}
if(r){
  r.on('error', function(err){
    logger.error('proxy error', err);
  });
  // r.on('response', function(response) {
  //   console.log(response.statusCode); // 200
  //   console.log(response.headers['content-type']); // 'image/png'
fork icon0
star icon0
watch icon1

+ 4 other calls in file