mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
revert(logFacesAppender): didn't need to move the requires
This commit is contained in:
parent
7aad4ccff0
commit
74ce349fad
@ -14,13 +14,11 @@
|
||||
'use strict';
|
||||
|
||||
const util = require('util');
|
||||
const dgram = require('dgram');
|
||||
const axiosLib = require('axios');
|
||||
|
||||
const context = {};
|
||||
|
||||
function datagram(config) {
|
||||
const sock = dgram.createSocket('udp4');
|
||||
const sock = require('dgram').createSocket('udp4');
|
||||
const host = config.remoteHost || '127.0.0.1';
|
||||
const port = config.port || 55201;
|
||||
|
||||
@ -36,7 +34,7 @@ function datagram(config) {
|
||||
}
|
||||
|
||||
function servlet(config) {
|
||||
const axios = axiosLib.create();
|
||||
const axios = require('axios').create();
|
||||
axios.defaults.baseURL = config.url;
|
||||
axios.defaults.timeout = config.timeout || 5000;
|
||||
axios.defaults.headers = { 'Content-Type': 'application/json' };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user