---
tag: m0928
title: Start SD Logging
brief: Log serial input to an SD file
author: thinkyhead

group: sdcard

codes: [ M928 ]
related: [ M29 ]

notes: Stop logging with [`M29`](/docs/gcode/M029.html).

parameters:
  -
    tag: filename
    optional: false
    description: File name of log file

examples:
  -
    pre: Start logging to log.txt
    code: M928 log.txt

---

Use this command to start logging all console and host input to an SD file while still operating the machine.
