Merge branch 'master' of https://github.com/dsn/log4js-node into dsn-master
This commit is contained in:
commit
73437ecb40
@ -38,7 +38,6 @@ function logServer(config) {
|
|||||||
var actualAppender = config.actualAppender,
|
var actualAppender = config.actualAppender,
|
||||||
server = net.createServer(function serverCreated(clientSocket) {
|
server = net.createServer(function serverCreated(clientSocket) {
|
||||||
clientSocket.setEncoding('utf8');
|
clientSocket.setEncoding('utf8');
|
||||||
clientSocket.on('connect', function clientConnected() {
|
|
||||||
var logMessage = '';
|
var logMessage = '';
|
||||||
|
|
||||||
function logTheMessage(msg) {
|
function logTheMessage(msg) {
|
||||||
@ -62,7 +61,7 @@ function logServer(config) {
|
|||||||
clientSocket.on('data', chunkReceived);
|
clientSocket.on('data', chunkReceived);
|
||||||
clientSocket.on('end', chunkReceived);
|
clientSocket.on('end', chunkReceived);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
server.listen(config.loggerPort || 5000, config.loggerHost || 'localhost');
|
server.listen(config.loggerPort || 5000, config.loggerHost || 'localhost');
|
||||||
|
|
||||||
return actualAppender;
|
return actualAppender;
|
||||||
|
Loading…
Reference in New Issue
Block a user