Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

LogLevel

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Options for different levels of log information supported by the Package Manager.

Set the Package Manager log level to get an appropriate level of detail in the log file. You can temporarily set a lower level, which generates more log information. This technique can help you understand the Package Manager's operations if something unexpected happens. When you complete your investigation, the recommended best practice is to raise the log level to prevent bloating the Package Manager log file.

using System;
using UnityEditor.PackageManager;
using UnityEngine;

[ExecuteInEditMode] public class PackageLogExample: MonoBehaviour { void Start() { Debug.Log($"Current log level: {Client.LogLevel}"); // Set to Debug to see extra debug level operation logs Client.LogLevel = LogLevel.Debug; } }

Properties

ErrorOnly unexpected errors and failures are logged.
WarnAbnormal situations that may result in problems are reported, in addition to anything from the LogLevel.Error level.
InfoHigh-level informational messages are reported, in addition to anything from the LogLevel.Warn level.
VerboseDetailed informational messages are reported, in addition to anything from the LogLevel.Info level.
DebugDebugging messages are reported, in addition to anything from the LogLevel.Verbose level.
SillyExtremely detailed messages are reported, in addition to anything from the LogLevel.Debug level.