What is log4Net
Library?
The log4net library is developed by Apache. It is very helpful for the
programmer for logging/tracking the output statements to desire output targets.
log4net is a port of the excellent Apache log4j™ framework to the Microsoft® .NET
runtime.
Feature of
log4Net Library
- Support for multiple frameworks
- Output to multiple logging targets
- Hierarchical logging architecture
- XML Configuration
- Dynamic Configuration
- Logging Context
- Proven architecture
- Modular and extensible design
- High performance with flexibility
log4net ships
with the following appenders (not on all frameworks):-
Type
|
Description
|
log4net.Appender.AdoNetAppender
|
Writes
logging events to a database using either prepared statements or stored
procedures.
|
log4net.Appender.AnsiColorTerminalAppender
|
Writes
color highlighted logging events to a an ANSI terminal window.
|
log4net.Appender.AspNetTraceAppender
|
Writes
logging events to the ASP trace context. These can then be rendered at the
end of the ASP page or on the ASP trace page.
|
log4net.Appender.ColoredConsoleAppender
|
Writes
color highlighted logging events to the application's Windows Console.
|
log4net.Appender.ConsoleAppender
|
Writes
logging events to the application's Console. The events may go to either the
standard our stream or the standard error stream.
|
log4net.Appender.DebugAppender
|
Writes
logging events to the .NET system.
|
log4net.Appender.EventLogAppender
|
Writes
logging events to the Windows Event Log.
|
log4net.Appender.FileAppender
|
Writes
logging events to a file in the file system.
|
log4net.Appender.LocalSyslogAppender
|
Writes
logging events to the local syslog service (UNIX only).
|
log4net.Appender.MemoryAppender
|
Stores
logging events in an in memory buffer.
|
log4net.Appender.NetSendAppender
|
Writes
logging events to the Windows Messenger service. These messages are displayed
in a dialog on a user’s terminal.
|
log4net.Appender.OutputDebugStringAppender
|
Writes
logging events to the debugger. If the application has no debugger, the
system debugger displays the string. If the application has no debugger and
the system debugger is not active, the message is ignored.
|
log4net.Appender.RemoteSyslogAppender
|
Writes
logging events to a remote syslog service using UDP networking.
|
log4net.Appender.RemotingAppender
|
Writes
logging events to a remoting sink using .NET remoting.
|
log4net.Appender.RollingFileAppender
|
Writes
logging events to a file in the file system. The RollingFileAppender can be
configured to log to multiple files based upon date or file size constraints.
|
log4net.Appender.SmtpAppender
|
Sends
logging events to an email address.
|
log4net.Appender.SmtpPickupDirAppender
|
Sends
logging events to an email address but writes the emails to a configurable
directory rather than sending them directly via SMTP.
|
log4net.Appender.TelnetAppender
|
Clients
connect via Telnet to receive logging events.
|
log4net.Appender.TraceAppender
|
Writes
logging events to the .NET trace system.
|
log4net.Appender.UdpAppender
|
Sends
logging events as connectionless UDP datagrams to a remote host or a
multicast group using a UdpClient.
|
I am hoping that you are enjoying with this post! Please share with you friends. Thank you!!
No comments:
Post a comment