BotDetect ASP.NET CAPTCHA Logging API Reference (BotDetect v3.0; deprecated)

BotDetect ASP.NET Captcha logging functionality is now encapsulated in this namespace, making custom logging provider implementations much simpler.

BotDetect.Logging.ILoggingProvider

Every logging provider used for BotDetect logging should implement this interface.

BotDetect.Logging.ILoggingProvider Interface Reference
BotDetect.Logging.ILoggingProvider public property bool ErrorLoggingEnabled Is error logging enabled
BotDetect.Logging.ILoggingProvider public method void LogError
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.ILoggingProvider public method void LogError
  • System.Exception e
Log the provided input to the BotDetect error log
BotDetect.Logging.ILoggingProvider public property bool TraceEnabled Is debug logging enabled
BotDetect.Logging.ILoggingProvider public method void Trace
  • string eventType
  • params object[] values
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.ILoggingProvider public property string EventTypeFilterRegex Filtered tracing, only logging events whose eventType matches this regex

BotDetect.Logging.LoggingProvider

The base logging provider class. Inheriting this class makes fulfilling the ILoggingProvider interface requirements as simple as implementing two methods logging strings to the error and trace logs.

Implements

BotDetect.Logging.ILoggingProvider

BotDetect.Logging.LoggingProvider Class Reference
BotDetect.Logging.LoggingProvider public property bool ErrorLoggingEnabled Is error logging enabled
BotDetect.Logging.LoggingProvider public method void LogError
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.LoggingProvider public method void LogError
  • System.Exception e
Log the provided input to the BotDetect error log
BotDetect.Logging.LoggingProvider public method void LogError
  • string value
Log the provided input to the BotDetect error log
BotDetect.Logging.LoggingProvider public method void LogError
  • string message
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.LoggingProvider public property bool TraceEnabled Is debug logging enabled
BotDetect.Logging.LoggingProvider public method void Trace
  • string value
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.LoggingProvider public method void Trace
  • string eventType
  • params object[] values
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.LoggingProvider public property string EventTypeFilterRegex Filtered tracing, only logging events whose eventType matches this regex

BotDetect.Logging.NullLoggingProvider

The default logging provider used if no other provider is configured, NullLoggingProvider simply does nothing with the captured events.

Implements

BotDetect.Logging.ILoggingProvider

Inherits

BotDetect.Logging.LoggingProvider

BotDetect.Logging.NullLoggingProvider Class Reference
BotDetect.Logging.NullLoggingProvider public property bool ErrorLoggingEnabled Is error logging enabled
BotDetect.Logging.NullLoggingProvider public method void LogError
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.NullLoggingProvider public method void LogError
  • System.Exception e
Log the provided input to the BotDetect error log
BotDetect.Logging.NullLoggingProvider public method void LogError
  • string value
Log the provided input to the BotDetect error log
BotDetect.Logging.NullLoggingProvider public method void LogError
  • string message
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.NullLoggingProvider public property bool TraceEnabled Is debug logging enabled
BotDetect.Logging.NullLoggingProvider public method void Trace
  • string value
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.NullLoggingProvider public method void Trace
  • string eventType
  • params object[] values
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.NullLoggingProvider public property string EventTypeFilterRegex Filtered tracing, only logging events whose eventType matches this regex

BotDetect.Logging.Log4NetLoggingProvider

A BotDetect logging provider implementation using log4net. It's separated from the main BotDetect assembly so referencing BotDetect doesn't cause a log4net dependency unless BotDetect.Troubleshooting.dll is also referenced.

Implements

BotDetect.Logging.ILoggingProvider

Inherits

BotDetect.Logging.LoggingProvider

BotDetect.Logging.Log4NetLoggingProvider Class Reference
BotDetect.Logging.Log4NetLoggingProvider public property bool ErrorLoggingEnabled Is error logging enabled
BotDetect.Logging.Log4NetLoggingProvider public method void LogError
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.Log4NetLoggingProvider public method void LogError
  • System.Exception e
Log the provided input to the BotDetect error log
BotDetect.Logging.Log4NetLoggingProvider public method void LogError
  • string value
Log the provided input to the BotDetect error log
BotDetect.Logging.Log4NetLoggingProvider public method void LogError
  • string message
  • params object[] values
Log the provided input to the BotDetect error log
BotDetect.Logging.Log4NetLoggingProvider public property bool TraceEnabled Is debug logging enabled
BotDetect.Logging.Log4NetLoggingProvider public method void Trace
  • string value
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.Log4NetLoggingProvider public method void Trace
  • string eventType
  • params object[] values
Log the provided input to the BotDetect trace / debug log
BotDetect.Logging.Log4NetLoggingProvider public property string EventTypeFilterRegex Filtered tracing, only logging events whose eventType matches this regex

Please Note

The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v3.0).

An up-to-date equivalent page for the latest BotDetect Captcha release (v4) is BotDetect v4 Captcha documentation index.

General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v4.0 page.