GH_DebugDescriptionWriter

References
Writer object used to create debug logs.

Constructors

GH_DebugDescriptionWriter

#
public GH_DebugDescriptionWriter()

Properties

Depth

#
Gets the depth of the current writer. Depth is represented by whitespace in front of each line.
public int Depth { get; }

Methods

CloseBlock

#
Close the current block and decrease the depth by 1.
public void CloseBlock()

CreateBlock

#
Begin a new block. This will increase the depth by 1. You must call CloseBlock() if you call this function.
public void CreateBlock(
name
)

CreateLog

#
Get a single string that represents the entire log so far.
public string CreateLog()

WriteLine

#
Write a new blank line to the log.
public void WriteLine()

WriteLine

#
Write a new formatted line to the log.
public void WriteLine(
line,
Line to write with formatting tags.
params object[]
args
Data to format.
)

WriteLine

#
Write a new line to the log.
public void WriteLine(
line
Line to write.
)

WriteLogToFile

#
Write the log to a text file.
public bool WriteLogToFile(
path
Path of file to write to.
)
True on success, false on failure.