index.js
function appender(configuration)
{
	var socket = dgram.createSocket('udp4');

	return function(loggingEvent)
	{
		var loggingObject =
		{
			name: loggingEvent.categoryName,
			message: layout(loggingEvent),
			severity: loggingEvent.level.level,
			severityText: loggingEvent.level.levelStr,
		};

		if (configuration.application)
		{
			loggingObject.application = configuration.application;
		}

		if (configuration.environment)
		{
			loggingObject.environment = configuration.environment;
		}

		if (MDC && MDC.active)
		{
			Object.keys(MDC.active).forEach(function(key)
			{
				loggingObject[key] = MDC.active[key];
			});
		}

		send(socket, configuration.host, configuration.port, loggingObject);
	};
}
function appender(configuration)
{
	var socket = dgram.createSocket('udp4');

	return function(loggingEvent)
	{
		var loggingObject =
		{
			name: loggingEvent.categoryName,
			message: layout(loggingEvent),
			severity: loggingEvent.level.level,
			severityText: loggingEvent.level.levelStr,
		};

		if (configuration.application)
		{
			loggingObject.application = configuration.application;
		}

		if (configuration.environment)
		{
			loggingObject.environment = configuration.environment;
		}

		if (MDC && MDC.active)
		{
			Object.keys(MDC.active).forEach(function(key)
			{
				loggingObject[key] = MDC.active[key];
			});
		}

		send(socket, configuration.host, configuration.port, loggingObject);
	};
}
function appender ( configuration ) { var socket = dgram . createSocket ( 'udp4' ) ; return function ( loggingEvent ) { var loggingObject = { name : loggingEvent . categoryName , message : layout ( loggingEvent ) , severity : loggingEvent . level . level , severityText : loggingEvent . level . levelStr , } ; if ( configuration . application ) { loggingObject . application = configuration . application ; } if ( configuration . environment ) { loggingObject . environment = configuration . environment ; } if ( MDC && MDC . active ) { Object . keys ( MDC . active ) . forEach ( function ( key ) { loggingObject [ key ] = MDC . active [ key ] ; } ) ; } send ( socket , configuration . host , configuration . port , loggingObject ) ; } ; }
Returns the appender.
Returns the appender .