You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SumoLogic provides an interface between log4Net and remote service Logging. You can logging its application as the usual way.
Once you have downloaded the NuGet package, you can watch the example project for configuration details.
Minimum requirements
.NET 4.5 or later or .NET Standard 1.5
Appenders
SumoLogicAppender: It instantly pushes the log message to SumoLogic.
BufferedSumoLogicAppender: It makes a log messages queue. It pushes the queue if the maximum quantity of messages was reached or if the maximum flush interval has passed.
Configuration
The configuration is in App.config. There are two appenders, BufferedSumoLogicAppender and SumoLogicAppender.
We recommend to use the BufferedSumoLogicAppender because SumoLogicAppender might make the application runs slower.
The output url is which you get from SumoLogic http collector.
Properties
SumoLogicAppender
Argument
Description
Default value
Url
The http collector URL from SumoLogic.
mandatory
SourceName
The named used for messages sent to SumoLogic.
Log4Net-SumoObject
SourceCategory
The category used for messages sent to SumoLogic.
null
SourceHost
The host used for messages sent to SumoLogic.
null
ConnectionTimeout
The connection timeout in milliseconds.
60000
BufferedSumoLogicAppender
Argument
Description
Default value
Url
The http collector URL from SumoLogic.
mandatory
SourceName
The named used for messages sent to SumoLogic.
Log4Net-SumoObject
SourceCategory
The category used for messages sent to SumoLogic.
null
SourceHost
The host used for messages sent to SumoLogic.
null
ConnectionTimeout
The connection timeout in milliseconds.
60000
FlushingAccuracy
How often the messages queue is checked for messages to send, in milliseconds.
250
MaxFlushInterval
The maximum interval between flushes, in milliseconds.
10000
MessagePerRequest
How many messages need to be in the queue before flushing.
100
MaxQueueSizeBytes
The messages queue capacity in bytes. Messages will be dropped when it is exceeded.