C# Class Bricklayer.Server.Log

Logs messages to the console with many options, such as colors, prefixes, and in-built string.Format arguments
Show file Open project: Cyral/Bricklayer

Public Methods

Method Description
Write ( ConsoleColor color, string text ) : void

Writes text to the console with specified color

Write ( string text ) : void

Writes text to the console

WriteBreak ( ) : void

Writes a line break/new line to the console

WriteLine ( ConsoleColor color, string text ) : void

Writes text to the console on a new line, with a specified color

WriteLine ( LogType type, ConsoleColor color, string text ) : void

Writes text to the console on a new line, using the specified log prefix, and a color for the rest of the text

WriteLine ( LogType type, string text ) : void

Writes text to the console on a new line, using the specified log prefix

WriteLine ( string text ) : void

Writes text to the console on a new line

Method Details

Write() public static method

Writes text to the console with specified color
public static Write ( ConsoleColor color, string text ) : void
color ConsoleColor
text string
return void

Write() public static method

Writes text to the console
public static Write ( string text ) : void
text string
return void

WriteBreak() public static method

Writes a line break/new line to the console
public static WriteBreak ( ) : void
return void

WriteLine() public static method

Writes text to the console on a new line, with a specified color
public static WriteLine ( ConsoleColor color, string text ) : void
color ConsoleColor
text string
return void

WriteLine() public static method

Writes text to the console on a new line, using the specified log prefix, and a color for the rest of the text
public static WriteLine ( LogType type, ConsoleColor color, string text ) : void
type LogType
color ConsoleColor
text string
return void

WriteLine() public static method

Writes text to the console on a new line, using the specified log prefix
public static WriteLine ( LogType type, string text ) : void
type LogType
text string
return void

WriteLine() public static method

Writes text to the console on a new line
public static WriteLine ( string text ) : void
text string
return void