Click or drag to resize

Log Class

A class that provides all means for writing to logs, exceptions, etc.
Inheritance Hierarchy
SystemObject
  VoiceElements.CommonLog

Namespace:  VoiceElements.Common
Assembly:  VoiceElementsCommon (in VoiceElementsCommon.dll) Version: 8.6.1.1
Syntax
public class Log

The Log type exposes the following members.

Constructors
  NameDescription
Public methodLog
Constructs a log, which either appends and existing log file or creates a new one.
Top
Properties
  NameDescription
Public propertyAlwaysExpanded
Is the log always expanded when output is going to window.
Top
Methods
  NameDescription
Public methodCloseLog
Closes the log file and log object.
Public methodWrite(String)
Writes the specified string message to the log file.
Public methodWrite(Int32, String)
Writes the specified string message to the log file and assigns a numeric log level.
Public methodWrite(String, Object)
Writes the specified StringObj message to the log file.
Public methodWrite(Int32, String, Object)
Writes the specified string message to the log file with parameters and a log level.
Public methodWriteException(Exception, String)
Writes a message to the log with additional information from the supplied exception.
Public methodWriteException(Exception, String, Object)
Writes a message to the log with additional information from the supplied exception along with additional parameters.
Public methodWriteException(Int32, Exception, String)
Writes a message to the log with additional information from the supplied exceptionand assign a log level.
Public methodWriteException(Int32, Exception, String, Object)
Writes a message to the log with additional information from the supplied exception along with a log level and parameters.
Public methodWriteWithFrame(String)
Write a message to the log file and includes the stack frame.
Public methodWriteWithFrame(Int32, String)
Write a message to the log file and includes the stack frame including assigning a log level.
Public methodWriteWithId(String, String, Object)
Writes a message with a user specified identifier preceeding the message, usually channel name or thread id.
Public methodWriteWithId(Int32, String, String, Object)
Writes a message with a user specified identifier preceeding the message, usually channel name or thread id. Also includes an assigned log level.
Top
Events
  NameDescription
Public eventMessageLogged
An event that is fired when a message is logged to the log file. This allows interactive clients to display these messages on a form.
Top
Fields
  NameDescription
Public fieldLogLevel
Set the level of logging. Default is 0.
Public fieldStatic memberLogPath
Defines the path for the logs
Top
Remarks
Documentation In Development

We are constantly adding features and new capabilities to The Voice Elements Platform. Therefore, our documentation of individual methods, properties and other elements is constantly being developed and improved. If you would like to know more about this element, please help us perfect our documentation and help you develop your application by doing one or more of the following:

Thank you for your continued support of Voice Elements.

See Also