Skip to content

T_CodeJam_PerfTests_Loggers_HostLogger

andrewvk edited this page Nov 8, 2016 · 3 revisions

HostLogger Class

Basic logger implementation for unit test runners

Inheritance Hierarchy

System.Object
  CodeJam.PerfTests.Loggers.HostLogger
    CodeJam.PerfTests.Running.Core.CompetitionRunnerBase.HostLogger
Namespace: CodeJam.PerfTests.Loggers
Assembly: CodeJam.PerfTests (in CodeJam.PerfTests.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public class HostLogger

VB

Public Class HostLogger

F#

type HostLogger =  class end

The HostLogger type exposes the following members.

Constructors

 

Name Description
Public method HostLogger Initializes a new instance of the HostLogger class.
  Back to Top

Properties

 

Name Description
Public property LogMode Host logging mode.
Protected property WrappedLogger The logger to redirect the output.
  Back to Top

Methods

 

Name Description
Public methodStatic member BeginLogImportant All messages within the scope will be passed to the log.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member FlushLoggers Flushes the loggers.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method PreprocessLine Handles well-known prefixes for the line.
Protected method ShouldWrite Checks if the line should be written.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write Write the text.
Public method WriteLine() Write empty line.
Public method WriteLine(LogKind, String) Write the line.
  Back to Top

Fields

 

Name Description
Public fieldStatic member LogImportantAreaEnd The end prefix for important log area. Lines between start and end prefixes will be written even if HostLogMode filter applied.
Public fieldStatic member LogImportantAreaStart The start prefix for important log area. Lines between start and end prefixes will be written even if HostLogMode filter applied.
Public fieldStatic member LogImportantInfoPrefix The prefix for important log lines. Lines with this prefix will be written even if HostLogMode filter applied.
Public fieldStatic member LogInfoPrefix The prefix for informational log lines. Lines with this prefix will be written even if HostLogMode filter applied.
Public fieldStatic member LogVerbosePrefix The prefix for verbose log lines. Lines with this prefix will be written only if AllMessages mode set.
  Back to Top

See Also

Reference

CodeJam.PerfTests.Loggers Namespace
ILogger

Clone this wiki locally