skner's Logging Toolkit
  • Welcome to skner's Logging Toolkit for Unity
  • Changelog
  • Examples
  • Getting Started
  • Introduction
  • Loggers
    • Class Logger
    • Game Object Logger
    • Global Logger
  • Models
    • Log Context
    • Log Format
    • Log Path
    • Log Tag Holder
  • Output Modules
    • Output Modules
  • Settings
    • Log Level Settings
    • Log Output Settings
    • Logger Settings
Powered by GitBook
On this page
  • Overview
  • Logging Examples
  • Resource Examples

Examples

Last updated 1 year ago

Overview

The logging toolkit package comes with a demo that contains examples on how to use the tool.

To access the demo project, navigate into the Package Manager. In the Logging Toolkit's entry, find the project in the Samples tab and import it:

Logging Examples

In the demo project, a SampleScene exists with the following objects:

  • Player: Contains a PlayerController script to allow for 2D movement.

  • 3 Collision Boxes: Represent the default log levels, used in the demonstration.

  • Main Camera: just a camera.

The Player object contains the following scripts:

  • PlayerController: Used to control the movement and a collision check to trigger log calling.

The PlayerController will make three separate calls to all the available logger types. These are created and used in the script. They provide a functioning example on how the logging toolkit can be setup.

Resource Examples

The demo project also contains example logging resources (ScriptableObjects). These resources contain:

  • An example logger settings instance.

  • Three sample output settings for the different natively supported file types.

These might be useful in what to consider when creating your own settings.

GameObjectLogger: An instance of the logger type.

Refer to the documentation in the folder for detailed instructions on how to configure and use the different logger types.

Refer to the documentation in the folder for more information on these settings.

GameObjectLogger
loggers
settings
Importing the demo sample