C# Class Open.Core.Log

Static log writer.
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
Clear ( ) : void

Clears the log.

Debug ( object message, Icons icon ) : void

Writes a debug message to the log.

Error ( object message ) : void

Writes an error message to the log.

Event ( object message ) : void

Writes an event message to the log.

Info ( object message, Icons icon ) : void

Writes a informational message to the log.

LineBreak ( ) : void

Inserts a line break to the log.

NewSection ( ) : void

Inserts a new section divider.

Success ( object message ) : void

Writes a success message to the log.

Title ( string message ) : void

Writes a informational message to the log (as a bold title).

Warning ( object message ) : void

Writes a warning to the log.

Write ( object message, string backgroundColor ) : void

Writes a message to the log.

WriteDictionary ( object instance, string title ) : void

Writes out the keys values for the given Dictionary.

WriteIcon ( object message, Icons icon, string backgroundColor ) : void

Writes a message to the log (prepended with an icon).

WriteList ( string title, string backgroundColor ) : IHtmlList

Writes an

    to the log.

    WriteListSeverity ( string title, LogSeverity severity ) : IHtmlList

    Writes an

      to the log.

      WriteProperties ( object instance, string title ) : void

      Writes out the property values for the given object.

      WriteSeverity ( object message, LogSeverity severity ) : void

      Writes a message to the log.

      Private Methods

      Method Description
      Debug ( object message ) : void
      Info ( object message ) : void
      Write ( object message ) : void
      WriteDictionary ( object instance ) : void
      WriteIcon ( object message, Icons icon ) : void
      WriteList ( ) : IHtmlList
      WriteList ( string title ) : IHtmlList
      WriteProperties ( object instance ) : void

      Method Details

      Clear() public static method

      Clears the log.
      public static Clear ( ) : void
      return void

      Debug() public static method

      Writes a debug message to the log.
      public static Debug ( object message, Icons icon ) : void
      message object The messge to write (HTML).
      icon Icons An icon.
      return void

      Error() public static method

      Writes an error message to the log.
      public static Error ( object message ) : void
      message object The messge to write (HTML).
      return void

      Event() public static method

      Writes an event message to the log.
      public static Event ( object message ) : void
      message object The messge to write (HTML).
      return void

      Info() public static method

      Writes a informational message to the log.
      public static Info ( object message, Icons icon ) : void
      message object The messge to write (HTML).
      icon Icons An icon.
      return void

      LineBreak() public static method

      Inserts a line break to the log.
      public static LineBreak ( ) : void
      return void

      NewSection() public static method

      Inserts a new section divider.
      public static NewSection ( ) : void
      return void

      Success() public static method

      Writes a success message to the log.
      public static Success ( object message ) : void
      message object The messge to write (HTML).
      return void

      Title() public static method

      Writes a informational message to the log (as a bold title).
      public static Title ( string message ) : void
      message string The messge to write (HTML).
      return void

      Warning() public static method

      Writes a warning to the log.
      public static Warning ( object message ) : void
      message object The messge to write (HTML).
      return void

      Write() public static method

      Writes a message to the log.
      public static Write ( object message, string backgroundColor ) : void
      message object The message to write.
      backgroundColor string The background color to apply to the log entry.
      return void

      WriteDictionary() public static method

      Writes out the keys values for the given Dictionary.
      public static WriteDictionary ( object instance, string title ) : void
      instance object The Dictionary to write.
      title string The title to put above the object.
      return void

      WriteIcon() public static method

      Writes a message to the log (prepended with an icon).
      public static WriteIcon ( object message, Icons icon, string backgroundColor ) : void
      message object The message to write.
      icon Icons An icon.
      backgroundColor string The background color to apply to the log entry.
      return void

      WriteList() public static method

      Writes an
        to the log.
        public static WriteList ( string title, string backgroundColor ) : IHtmlList
        title string The title of the list.
        backgroundColor string The background color to apply to the log entry.
        return IHtmlList

        WriteListSeverity() public static method

        Writes an
          to the log.
          public static WriteListSeverity ( string title, LogSeverity severity ) : IHtmlList
          title string The title of the list.
          severity LogSeverity The severity of the message.
          return IHtmlList

          WriteProperties() public static method

          Writes out the property values for the given object.
          public static WriteProperties ( object instance, string title ) : void
          instance object The object to write.
          title string The title to put above the object.
          return void

          WriteSeverity() public static method

          Writes a message to the log.
          public static WriteSeverity ( object message, LogSeverity severity ) : void
          message object The message to write (HTML).
          severity LogSeverity The severity of the message.
          return void