07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Test</strong>ing for Security Best Practices 129<br />

Identify the Relevant Classes<br />

Identify the relevant classes and the ways you expect them to be used. These are<br />

classes that, if misused, can affect the security of the application block. Table 3 lists<br />

the Logging Application Block classes.<br />

Table 3: Logging Application Block Classes<br />

No. Scenario<br />

1 The Logger class can access the default configuration file.<br />

2 The <strong>Enterprise</strong><strong>Library</strong>Factory class can access custom configuration sources and the<br />

default configuration source.<br />

3 The CustomTraceListener class is the base class for custom trace listeners.<br />

4 The EmailTraceListener class creates e-mail messages from log messages and sends<br />

them.<br />

5 The FormattedEventLogTraceListener class logs information to the event log.<br />

6 The FormattedTextWriterTraceListener class uses streams to log messages.<br />

7 The FlatFileTraceListener class logs messages to flat files.<br />

8 The WMITraceListener class raises instrumentation events.<br />

9 The MsmqTraceListener class sends log messages to a message queue.<br />

10 The FormatterDatabaseTraceListener class logs information to a database.<br />

11 The LoggingInstrumentationProvider class implements the instrumentation. The LoggingInstrumentationListener<br />

class receives performance counter data.<br />

12 The CategoryFilter class filters log messages based on their categories. Users specify<br />

these categories when they configure the application block.<br />

13 The LogEnabledFilter class enables and disables logging.<br />

14 The PriorityFilter class filters log messages based on their priorities.<br />

15 The ILogFilter interface is the basis for custom log filters that filter log messages according<br />

to their attributes.<br />

16 The BinaryLogFormatter class serializes log messages in binary format.<br />

17 The TextFormatter class formats log messages according to a specified template.<br />

18 The ILogFormatter interface is the basis for custom log formatters.<br />

19 The ComPlusInformationProvider class gathers information about COM objects that can be<br />

included in a log message.<br />

20 The DebugInformationProvider class gathers diagnostic debugging information, such as<br />

stack traces that can be included in a log message.<br />

21 The ManagedSecurityContextInformationProvider class gathers diagnostic information<br />

about the managed code security context that can be included in a log message.<br />

22 The UnmanagedSecurityContextInformationProvider class gathers diagnostic information<br />

about the unmanaged code security context.<br />

23 The IExtraInformationProvider interface is the basis for custom configuration classes,<br />

such as dictionaries, that gather diagnostic information.<br />

24 The MsmqListener class configures a message queue.<br />

25 The MsmqLogDistributor class transfers the message queue SOAP messages to trace<br />

sources that are specified in the configuration file.<br />

continued

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!