Angel 3.2
A 2D Game Prototyping Engine
Public Member Functions | Static Public Member Functions | List of all members
CompoundLog Class Reference

Lets you write to multiple logs at once. More...

#include <Log.h>

+ Inheritance diagram for CompoundLog:

Public Member Functions

void AddLog (DeveloperLog *addLog)
virtual void Log (const String &val)
- Public Member Functions inherited from DeveloperLog
virtual ~DeveloperLog ()
void Printf (const char *format,...)

Static Public Member Functions

static CompoundLogGetSystemLog ()

Detailed Description

This class collects various other logs together and lets you write the same value to them simultaneously. This is useful if you want to write something to both the screen and a file at the same time.

Definition at line 146 of file Log.h.

Member Function Documentation

void CompoundLog::AddLog ( DeveloperLog addLog)

Add a log to the list of receivers.

addLogThe log you wish to add.

Definition at line 72 of file Log.cpp.

void CompoundLog::Log ( const String &  val)

Writes a string to all registered logs

valThe string to log.

Implements DeveloperLog.

Definition at line 84 of file Log.cpp.

CompoundLog & CompoundLog::GetSystemLog ( )

A reference to the system log (where Angel will spew its information, and to which you can attach another log if you want).

The system log

Definition at line 92 of file Log.cpp.

The documentation for this class was generated from the following files: