C# Class SharpSoundDevice.Logging

Logging framework for SharpSoundDevice bootstrapping code. Not to be used by plugin devices!
Show file Open project: ValdemarOrn/SharpSoundDevice

Public Methods

Method Description
Log ( string message ) : void
LogDeviceException ( IAudioDevice device, Exception e ) : void

LogDeviceException ( int id, Exception e ) : void

Private Methods

Method Description
CleanupOldLogs ( string dir ) : void

Removes log files older than 60 days

FlushInternal ( ) : void
FlushLogs ( ) : void
GetTrace ( this e ) : string

put all exception details into string

Logging ( ) : System

Method Details

Log() public static method

public static Log ( string message ) : void
message string
return void

LogDeviceException() public static method

public static LogDeviceException ( IAudioDevice device, Exception e ) : void
device IAudioDevice
e System.Exception
return void

LogDeviceException() public static method

public static LogDeviceException ( int id, Exception e ) : void
id int
e System.Exception
return void