Skip to content

Logging

Anastasia Laczko edited this page Jun 11, 2021 · 3 revisions

Introduction

Logging is done through SLF4J, and is used for debugging.

There are several debugging levels which filter the type of logs you see.

Usage

Set logging preferences in logging.properties.

Add logging to a class:

public class ExampleClass {
  private static final Logger logger = LoggerFactory.getLogger(ExampleClass.class);

  public ExampleClass () {
    // example of logging something
    logger.info("This is how you log something");
  }
}

See slf4j's Logger for logging options.

Table of Contents

Home

Game

Game Home

Design Influences

Gameplay Features

Style

Story

Friendly Units
Map
City
Buildings
Unit Selections

Spell

Game User Testing: Theme of Unit Selection & Spell System

UI User Testing

Tutorial

Resource Stats Display

Loading Screen Bar

Health Bars
In Game menu
  • Feature
  • User Testing:In Game Menu

Landscape Tile Design

Landscape Tile Design Feedback

Weather Design

Weather Design Feedback

Camera Movement

Enemy design

Enemy Units

Enemy AI

How Animation Works

Map Flooding

Game Engine

Getting Started

Entities and Components

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally