Beyond what model.fit logs automatically
The Keras TensorBoard callback handles standard metrics. For custom metrics, sample images, attention maps, embedding projections, or anything not covered by model.fit, use the tf.summary API directly.
Pattern: create a writer, open it as a context, call tf.summary.scalar / image / histogram / text with a name, value, and step. Use separate writers for train and validation logs so they appear as separate series in the dashboard.