Aggie Student Toolkit — Load Balancer CSCE 412 Project 4
Arnav Fotedar · Fall 2026 · C++ load balancer simulation
Loading...
Searching...
No Matches
Logger.h File Reference

Declares the Logger class that prints colored, mode-aware simulation events. More...

#include <fstream>
#include <string>

Go to the source code of this file.

Classes

class  Logger
 Writes simulation events to the console and, optionally, to a file. More...

Enumerations

enum class  LogCategory {
  Arrival , Assign , Complete , Reject ,
  Discard , ScaleUp , ScaleDown , Status ,
  Info
}
 Kind of event being logged; selects the color and whether quiet mode shows it. More...

Detailed Description

Declares the Logger class that prints colored, mode-aware simulation events.

Author
Arnav Fotedar

Definition in file Logger.h.

Enumeration Type Documentation

◆ LogCategory

enum class LogCategory
strong

Kind of event being logged; selects the color and whether quiet mode shows it.

Enumerator
Arrival 

A request entered the queue.

Assign 

A queued request was dispatched to a server.

Complete 

A server finished a request.

Reject 

The firewall blocked a request.

Discard 

The queue was full and a request was dropped.

ScaleUp 

A server was added or returned to service.

ScaleDown 

A server was removed or marked for retirement.

Status 

Periodic queue and server status line.

Info 

General information such as start-up messages.

Definition at line 16 of file Logger.h.