Table of Contents

Class UnityEngineLogger

public class UnityEngineLogger : ILogger, IDisposable
Inheritance
UnityEngineLogger
Implements
Inherited Members

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Log(string, string, int)

Logs a message.

public void Log(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the message.

message string

The message to log.

lineNumber int

caller line number

LogError(string, string, int)

Logs an error message.

public void LogError(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the error message.

message string

The error message to log.

lineNumber int

caller line number

LogException(string, Exception, int)

Logs an exception.

public void LogException(string className, Exception exception, int lineNumber = 0)

Parameters

className string

The name of the class logging the exception.

exception Exception

The exception to log.

lineNumber int

caller line number

LogWarning(string, string, int)

Logs a warning message.

public void LogWarning(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the warning message.

message string

The warning message to log.

lineNumber int

caller line number