Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

DebugToolsPlus

DebugToolsPlus is a Unity package that enhances your debugging experience by providing advanced logging functionalities. With support for customizable colors, formatting, and extended log levels, it makes debugging faster and more efficient.

Features

  • Easy-to-use logging system.
  • Support for custom log colors and formats.
  • Includes:
    • A static class D for quick log output.
    • A static class DColors for color customization.
    • An enum DColor for defining log colors.
    • A test script DebugToolsPlusTest to help you get started.

Installation

  1. Import the package into your Unity project via the Unity Asset Store or directly into the project’s Assets folder.

Usage

Once imported, you can start using DebugToolsPlus right away. Here are several examples of how to use the logging system:

Basic Logging

usingDebugToolsPlus;publicclassExample:MonoBehaviour{voidStart(){// Simple log messageD.Log("Your Title","This is a normal log message.");// Warning log messageD.LogWarning("Your Title","This is a warning message.");D.Log("Your Title","This is a warning message.",LogType.Warning);// Error log messageD.LogError("Your Title","This is an error message.");D.Log("Your Title","This is a warning message.",LogType.Error);// Custom colored logD.Log("Your Title","This is a custom colored log.",DColors.Green);//GreenD.Log("Your Title","This is a custom colored log.",3);//GreenD.Log("Your Title","This is a red warning log.",DColors.Red);//RedD.Log("Your Title","This is a red warning log.",2);//RedD.Log("Your Title","This is a blue info log.",DColors.Blue);//BlueD.Log("Your Title","This is a blue info log.",4);//Blue//You can colored the log with a number too!//You can colored the Warning and Error log too!//Use Object for Context in Unity EditorD.Log("Your Title","This is a log with context.",this);//Or combine all togetherD.Log("Your Title","This is a log with context and color.",this,LogType.Warning,DColors.Yellow);//Yellow//To show the message with color you can try the followingD.Log("Your Title","This is a log with context and color.",this,LogType.Warning,DColors.Yellow,true);//Yellow}}

About

A minimal customizable library to be able to launch messages to formatted consoles (Colors, headers, messages...)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors