Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Mother Core (Script Framework)
  • Cheatsheet
  • Brand Guidelines
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Mother Core (Script Framework)
  • Cheatsheet
  • Brand Guidelines
  • Cheatsheet
  • Mother OS (Ingame Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Configuration
      • Modules
    • Core Modules

      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Intergrid Message Service
      • Local Storage
      • Merge Block Module
    • Extension Modules

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Door Module
      • Gas Tank Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Screen Module
      • Sensor Module
      • Sorter Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
      • Wheel Module
    • Compatibility
    • Examples
  • Mother GUI
    • Getting Started

      • Installation
      • Configuration
    • Commands
    • Menus
    • Views
  • Mother Autopilot System (MAPS)
    • Getting Started

      • Upgrade Guide
      • Installation
    • Modules

      • Flight Planning Module
      • Map Module
      • Flight Control Module
      • Attitude Module
      • Docking Module
  • Mother Core (Script Framework)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Architecture Overview
      • Managing Script Size & Complexity
    • Building A Module
    • Mother CLI (Console)
    • Core Modules
      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Clock
      • Command Bus
      • Configuration
      • Event Bus
      • Intergrid Message Service
      • Local Storage
      • Log
      • Terminal
    • Utilities

      • Color Helper
      • Number Helper
      • Security
      • Serializer
    • Tutorials
  • Powered By Mother
  • Brand Guidelines

Log

  • Writing to the Log
  • Reading Log Records
  • Viewing the Log
  • Retention
  • Emitted Events

Log is Mother's in-memory diagnostic log. It stores recent records with timestamps and severity prefixes so modules can keep a compact audit trail without printing every detail into the terminal.

Writing to the Log

Use Info() for expected activity and Error() for failures.

DockingModule.cs
Log log = GetModule<Log>();

log.Info("Docking request sent.");
log.Error("Docking request timed out.");

Reading Log Records

Records is a list of formatted strings, newest first.

DisplayModule.cs
List<string> records = GetModule<Log>().Records;

foreach (string record in records.Take(5))
    Mother.Print(record, false);

Viewing the Log

You can view the log of any Mother script with the LogView:

Display Block > Custom Data
[surfaces]
0=LogView "Mother OS"

Retention

Log keeps the most recent 30 records and drops the oldest entries automatically.

Emitted Events

Log does not emit any built-in events.

Last Updated: 5/2/26, 10:05 PM
Contributors: lukejamesmorrison, Copilot
Prev
Local Storage
Next
Terminal