GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sacred-Seed-Studio/Unity-File-Debug: Enhanced debug logging for Unity, with JSON/CSV export and HTML viewer.

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
Assets
Assets
 
 
ProjectSettings
ProjectSettings
 
 
UnityPackageManager
UnityPackageManager
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Unity-File-Debug

Unity Version  Platform  GitHub license  GitHub release  GitHub issues  Pull Requests 

Enhanced debug logging for Unity, with file export and HTML viewer.

  • Read the blog post
  • See the demo
  • Unity Asset Store

Why

  • Output Unity debug info to log files (csv, tsv, json, txt)
  • A nice web interface to view the log files (csv, tsv, json)
    • HTML5 (single file)
    • No external dependencies
    • Searchable via message, stacktrace, timestamp, logtype
    • Filterable by logtype
  • Be able to drop it into existing projects

How to use

  1. Import the latest release's package into your project
  2. Move the prefab Unity File Debug into your scene
  3. Setup the filepath and settings in the inspector
  4. Copy the HTML to your output path via inspector button
  5. Use Debug.Log as normal, or for more advanced usage see Tester script in Demo folder
  6. Open the UnityFileDebugViewer.html file from your log folder, browse for a log file from the top left

If you don't specify an absolute filepath, Application.persistentDataPath will be used.

HTML viewer is designed for modern browsers (chrome/firefox)

Developing

  • Fork/clone this repository
  • Open in Unity
  • Hack away

How to Customize

Custom log types

  1. Change DLogType enumeration in DebugWrapper.cs
  2. Update topLogTypes and nestedLogTypes arrays in UnityFileDebugViewer.html
  3. Update LogTypeColors css in UnityFileDebugViewer.html
  4. Update svg icons in UnityFileDebugViewer.html

No nesting in viewer

  1. Move all elements from nestedLogTypes array to topLogTypes in UnityFileDebugViewer.html

Using other log sources

The viewer supports a few different file formats

JSON format:
{
  t: '', // type
  tm: '', // time
  l: '', // log message
  s: '', // log stack trace
}
CSV header:

type,time,log,stack

TSV header:

type time log stack


Release

In the Unity Editor, click the menu option SSS/Util/Package/Unity File Debug. The UnityFileDebug.unitypackage will be in the root of this project.

About

Enhanced debug logging for Unity, with JSON/CSV export and HTML viewer.

www.assetstore.unity3d.com/en/#!/content/72250

Topics

csv-exportdebughtml-viewerjson-exportlogtypeunityunity3dunity3d-plugin

Resources

Readme
MIT license
Activity
Custom properties

Stars

65 stars

Watchers

4 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.