NullLogger
The standard logger that is used when logging isn't necessary.
This exists so that you don't have to null check every single instance of the logger.
public class NullLogger : ILoggerInherits from System.Object
Implements Yarn.Shared.ILogger
You do not make your own instances of this but instead use the static Default instance.
#Properties
#Default
The default and only instance of the logger, if you are using this class you want to use this
public static NullLogger Default { get; }Type NullLogger
#Methods
#Dec()
Decrement the current depth of the logger
public void Dec()Returns Void
#Inc()
Increment the current depth of the logger
public void Inc()Returns Void
#WriteException(Exception, string?)
public void WriteException(Exception ex, string? message = null)Parameters
exExceptionmessagestring?
Returns Void
#WriteLine(object)
The standard "write a single line containing the value" of a logger.
public void WriteLine(object obj)Parameters
objobjectThe value to be written, will generally always be a string
Returns Void
This line should be indented by the current depth of the logger
Generated from Yarn Spinner for Unity 3.3.