Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ILogger

Interface for custom logger implementation.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Interface
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public interface ILogger : ILogHandler

Remarks

Additional Resources: Logger, Debug.unityLogger ILogHandler.

Properties

Property

Description

filterLogTypeTo selective enable debug log message.
logEnabledTo runtime toggle debug logging [ON/OFF].
logHandlerSet Logger.ILogHandler.

Methods

Method

Description

IsLogTypeAllowedCheck logging is enabled based on the LogType.
LogLogs
message
to the Unity Console using default logger.
LogErrorA variant of ILogger.Log that logs an error message.
LogExceptionA variant of ILogger.Log that logs an exception message.
LogFormatLogs a formatted message.
LogWarningA variant of Logger.Log that logs an warning message.

Inheritance