[This is preliminary documentation and is subject to change.]

Adds a message to the server log. Depending on server configuration and log category, message can be shown in console, logged to file, both, or neither.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[StringFormatMethodAttribute("message")]
public static void Log(
	LogType type,
	string message,
	params Object[] args
)

Parameters

type
LogType
Type of message.
message
String
Format string for the message. Uses same syntax as String.Format.
args
array<Object>[]()[][]
An System.Object array containing zero or more objects to format.

Exceptions

ExceptionCondition
System..::..ArgumentNullException Message or args is null.
System..::..FormatException String.Format rejected formatting.

See Also