 | Logger Class |
This is a very simply class to abstract the use of log4net.
If log4net is included in the project, you simply use this
class as it is. If you remove the log4net.dll from your
project, all you have to do is uncomment
#define LOG4NET (say //#define LOG4NET)
at the top of this file.
You should definitely remove log4net when building Web players
as it increases the size significantly (around 1 to 2 MB!)
Inheritance Hierarchy
Namespace: Slash.Diagnostics.LoggingAssembly: Slash.Diagnostics (in Slash.Diagnostics.dll) Version: 1.0.6018.40181
Syntaxpublic class Logger : ILogger
Public Class Logger
Implements ILogger
public ref class Logger : ILogger
type Logger =
class
interface ILogger
end
The Logger type exposes the following members.
Constructors
| Name | Description |
---|
 | Logger |
A logger to be used for logging statements in the code.
It is recommended to follow a pattern for instantiating this:
private static readonly JCsLogger log = new JCsLogger(typeof(YourClassName));
...
log.*(yourLoggingStuff); |
Top
Properties
Methods
| Name | Description |
---|
  | Configure(Stream) | |
  | Configure(String) | |
 | Debug(Object) | |
 | Debug(Object, Exception) | |
 | DebugFormat(String, Object) | |
 | DebugFormat(IFormatProvider, String, Object) | |
 | Error(Object) | |
 | Error(Object, Exception) | |
 | ErrorFormat(String, Object) | |
 | ErrorFormat(IFormatProvider, String, Object) | |
 | Fatal(Object) | |
 | Fatal(Object, Exception) | |
 | FatalFormat(String, Object) | |
 | FatalFormat(IFormatProvider, String, Object) | |
 | Info(Object) | |
 | Info(Object, Exception) | |
 | InfoFormat(String, Object) | |
 | InfoFormat(IFormatProvider, String, Object) | |
 | Warn(Object) | |
 | Warn(Object, Exception) | |
 | WarnFormat(String, Object) | |
 | WarnFormat(IFormatProvider, String, Object) | |
Top
See Also