affection-0.0.0.9: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Logging

Description

This module defines the logging capability of Affection, whis is derived from Debug.Trace.

Synopsis

Documentation

data LogLevel Source #

The log level definition

Constructors

Verbose

Log everything

Debug

Log Debug messages and above

Warn

Log only Warnings and errors

Error

Log only errors

log Source #

Arguments

:: LogLevel

Log level to log to

-> String

The message string

-> a

Arbitrary datatype to return

-> a

Returned data

Pure logging function

logIO Source #

Arguments

:: LogLevel

Log level to log to

-> String

The message string

-> IO () 

Manadic logging function residing in the IO Monad