Bricklayer.Server.LogType.WriteText C# (CSharp) Method

WriteText() public method

Write text to the console using the prefix
public WriteText ( string text ) : void
text string
return void
        public void WriteText(string text)
        {
            Console.ForegroundColor = Color;
            Console.Write(sb.Clear().Append(Prefix).Append(spacer).ToString());
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(text);
        }

Same methods

LogType::WriteText ( string text, ConsoleColor color ) : void

Usage Example

示例#1
0
 /// <summary>
 /// Writes text to the console on a new line, using the specified log prefix, and a color for the rest of the text
 /// </summary>
 public static void WriteLine(LogType type, ConsoleColor color, string text)
 {
     type.WriteText(text, color);
 }
All Usage Examples Of Bricklayer.Server.LogType::WriteText