NET Logging Library
Log Class Members
Properties  Methods 


KellermanSoftware.NetLoggingLibrary Namespace : Log Class

The following tables list the members exposed by Log.

Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic) Get or set the concrete logger where all the logging is handled by the static logger. This is automatically instantiated in a static constructor however, it can be replaced with a mock.  
Public Propertystatic (Shared in Visual Basic) The configuration for all the logging. This is automatically instantiated with a static constructor.  
Public Propertystatic (Shared in Visual Basic) Get or set the configuration by serialized XML  
Public Propertystatic (Shared in Visual Basic) The license key from your receipt  
Public Propertystatic (Shared in Visual Basic) The last exception that occured while attempting to log. Null, if there is no exception.  
Public Propertystatic (Shared in Visual Basic) Prefix all messages with the supplied string  
Public Propertystatic (Shared in Visual Basic) The total number of messages that are currently in the queue for asynchronous targets  
Public Propertystatic (Shared in Visual Basic) The total number of messages that have been logged for all targets  
Public Propertystatic (Shared in Visual Basic) The user name for the license from your receipt  
Top
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic) Clear all the logs for all targets  
Public Methodstatic (Shared in Visual Basic) Close all the connections to all targets. Closes all file streams, database connections etc.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log a Debug message  
Public Methodstatic (Shared in Visual Basic) Log a formatted debug message similar to console.writeline  
Public Methodstatic (Shared in Visual Basic) Dispose of managed resources including Closing Database Connections, and Files  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Email a log file  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log an error message  
Public Methodstatic (Shared in Visual Basic) Log a formatted debug message similar to console.writeline  
Public Methodstatic (Shared in Visual Basic)Overloaded.  The application is about to crash. Log a fatal message.  
Public Methodstatic (Shared in Visual Basic) Log a formatted debug message similar to console.writeline  
Public Methodstatic (Shared in Visual Basic) Wait for the specified number of milliseconds for asynchronous targets to log  
Public Methodstatic (Shared in Visual Basic) Get a target by its name  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log an informational message  
Public Methodstatic (Shared in Visual Basic) Log a formatted debug message similar to console.writeline  
Public Methodstatic (Shared in Visual Basic) This automatically happens on startup. This is useful if the configuration has been modified at runtime and you want to revert to what is on disk  
Public Methodstatic (Shared in Visual Basic) Load the configuration from the specified app.config or web.config file  
Public Methodstatic (Shared in Visual Basic) Load the configuration from the specified XML file  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log an attachment to the BinaryFileTarget. If no binary target is attached, nothing will be logged  
Public Methodstatic (Shared in Visual Basic) Log a custom log entry  
Public Methodstatic (Shared in Visual Basic) Log a data set  
Public Methodstatic (Shared in Visual Basic) Log a data table  
Public Methodstatic (Shared in Visual Basic) Log a data view  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log an exception  
Public Methodstatic (Shared in Visual Basic) Log an exception with a formatted message  
Public Methodstatic (Shared in Visual Basic) Log an object of any type  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log a stack trace, skipping frames  
Public Methodstatic (Shared in Visual Basic) Log an XML Document  
Public Methodstatic (Shared in Visual Basic) Pop a method from the stack and measure the performance  
Public Methodstatic (Shared in Visual Basic) Push a method on to a stack for tracking performance  
Public Methodstatic (Shared in Visual Basic) Clear all configuration  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Save the current configuration to the app.config or web.config file depending upon the application  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Save configuration to Log.Config file in the current directory  
Public Methodstatic (Shared in Visual Basic) Validate current user name and license key  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Log a warning message  
Public Methodstatic (Shared in Visual Basic) Log a formatted debug message similar to console.writeline  
Top
See Also

Reference

Log Class
KellermanSoftware.NetLoggingLibrary Namespace