docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
Show / Hide Table of Contents
    • AddCollectorMenuAttribute
  • Unity.Simulation
    • AggregatedSample
    • AggregationEvent
    • ArrayCast
    • ArrayUtilities
    • AsyncRequest
    • AsyncRequest.ExecutionContext
    • AsyncRequest.Result
    • AsyncRequest.State
    • AsyncRequest<T>
    • BaseDataConsumer<T>
    • BaseDataConsumer<T>.Uploadable
    • Category
    • ChunkedStream
    • ChunkedUnityLog
    • CollectorBase
    • CollectorBase.ConsumeCollectorReport
    • CollectorElement
    • CollectorsBaseEditor
    • CollectorsList
    • Configuration
    • Configuration.SimulationConfiguration
    • ContentType
    • ContinuousEvents
    • ContinuousEvents.EventCollectionDelegate
    • ContinuousEvents.EventDispatchDelegate
    • CoreProfilerUtils
    • CounterEvent
    • CounterEventData
    • DXChunkedStream
    • DXChunkedUnityLog
    • DXFile
    • DXFormat
    • DXManager
    • DXTimeLogger
    • DataCapturePaths
    • DirectoryNameComponent
    • Dispatcher
    • EventBase
    • ExecUtility
    • ExitPlaymode
    • ExtensionNameComponent
    • FileNameComponent
    • FileProducer
    • Format
    • FrameCountCondition
    • FrameLimit
    • FrameNumberNameComponent
    • ICondition
    • IDataProduced
    • IGlobalProfilerDataDispatcher
    • IgnoreCollectorAttribute
    • LabelNameComponent
    • LambdaJob
    • LambdaJob.DelegateType
    • Log
    • Log.Level
    • Manager
    • Manager.NotificationDelegate
    • Manager.TickDelegate
    • NameComponent
    • NameGenerator
    • Options
    • PackageImportTests
    • PathUtility
    • PerfStatsManager
    • PlayerResolution
    • PlayerResolutionSettings
    • ProfilerManager
    • ProfilerProperties
    • ProfilerReport
    • ProfilerSamplingEvent
    • ReportingUtils
    • Sample
    • SampleProfilerCollector
    • SequenceNameComponent
    • SequencedPathName
    • SignedURLDataConsumer
    • SimSecondsCondition
    • SimulationProfiler
    • SimulationProfilerBase
    • SimulationProfilerEditor
    • TestUtility
    • ThreadUtility
    • TimeLimit
    • TimeLogger
    • TimeScale
    • TimeScaleEditor
    • TimeUtility
    • Timer
    • TimerSource
    • TimestampNameComponent
    • WallSecondsCondition

Class Log

Logging class that the SDK uses for logging. Essentially a wrapper around Debug.Log/Console.WriteLine.

Inheritance
object
Log
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.dll
Syntax
public static class Log

Properties

level

Get/Set the logging level.

Declaration
public static Log.Level level { get; set; }
Property Value
Type Description
Log.Level

Methods

E(string, bool)

Log Error level message to the file.

Declaration
public static void E(string message, bool logToConsole = false)
Parameters
Type Name Description
string message

Error log message.

bool logToConsole

boolean indicating if the log message is to be displayed on the console.

F(string, bool)

Log Fatal level message to the file.

Declaration
public static void F(string message, bool logToConsole = false)
Parameters
Type Name Description
string message

Fatal log message.

bool logToConsole

boolean indicating if the log message is to be displayed on the console.

I(string, bool)

Log info level message to the file.

Declaration
public static void I(string message, bool logToConsole = false)
Parameters
Type Name Description
string message

Info log message.

bool logToConsole

boolean indicating if the log message is to be displayed on the console.

V(string, bool)

Log Verbose level message to the file.

Declaration
public static void V(string message, bool logToConsole = false)
Parameters
Type Name Description
string message

Verbose log message.

bool logToConsole

boolean indicating if the log message is to be displayed on the console.

W(string, bool)

Log Warning level message to the file.

Declaration
public static void W(string message, bool logToConsole = false)
Parameters
Type Name Description
string message

Info warning message.

bool logToConsole

boolean indicating if the log message is to be displayed on the console.

Write(Level, string, bool)

Write the log message to the player log file and/or console.

Declaration
public static void Write(Log.Level level, string message, bool logToConsole)
Parameters
Type Name Description
Log.Level level

Log Level

string message

Log message

bool logToConsole

boolean indicating if the log message is to be displayed on the editor console.

In This Article
Back to top
Copyright © 2026 Unity Technologies — Trademarks and terms of use
  • Legal
  • Privacy Policy
  • Cookie Policy
  • Do Not Sell or Share My Personal Information