Logger.log(msg) returns f'[LOG] {msg}'. Subclass TimestampLogger overrides log to return the parent's output prefixed with a supplied ts string: f'{ts} ' + super-result. The pattern to practice: overriding a method while still calling the original through super().TimestampLogger().log('boot', '2026-07-28')'2026-07-28 [LOG] boot'
The child wraps rather than replaces the parent behavior.
Call the parent first, then prepend.
No duplication of the [LOG] formatting.