This page covers Log Mode: how a file is recognized as a log, Go to Time, which jumps to a clock time, a date or an offset from the caret line, and the timestamp formats Caxton recognizes, syslog, Apache, nginx and CMTrace among them, with View ▸ Log ▸ Timestamp Format… to override the detected one. It also covers the Severity filter and row tint, View ▸ Log ▸ Severity Patterns… for your own level words, Edit ▸ Bookmarks ▸ Extract Incident Window…, and notes on bookmarks with Copy as Incident Notes. Follow for a growing file, View ▸ Log ▸ Catch Up to Live, View ▸ Log ▸ Open Skipped Range as Slice and log rotation are described here too.
When a file is a log
A file becomes a log by its extension, by a file pattern rule, or by the shape of its first lines. One stamped line is enough only in a one-line file. A file of two lines needs both stamped, a file of 3 to 15 lines needs 3, and a longer file needs 8 among its first 256 lines, with blank lines left out of the count. A followed file that starts empty is detected as lines arrive. In a log, error and warning lines carry a tinted row band, the same rows carry a translucent band across the minimap, the filter bar gains a Severity popup, and Go to Time is available.
Severity tint on the rows, the same vocabulary driving the filter bar's Severity popup.
Go to Time
⌥⌘L opens Go to Time. In a log whose lines carry a timestamp in a format Caxton recognizes, the field takes a clock time (14:03, 14:03:30), a date and time (2026-09-04 14:03), a bare date, or an offset from the caret line (+5m, -30s, +2h, +1d). It lands on the first line at or after that time, and the banner names the line and time it landed on. The search probes a few dozen lines through the index, so it does not scan the file.
- Typed times are read in the log's own zone when its lines carry one (
Z,UTC,GMT, an offset such as+05:00, or a named zone with an offset such asGMT+02:00), otherwise in the zone chosen in Timestamp Format. - The banner adds a warning when the log is not in time order near the landing. A continuation line deep in a stack trace keys to its own record.
- An entry that does not parse is named in the banner instead of closing silently. An offset with no unit (
+5) is refused with a hint, rather than being read as a line number.
The search field takes the same times after a :, such as :14:03 or :+5m.
Timestamp formats recognized
ISO 8601, syslog, Apache access and error logs, nginx error logs, Go's log package, Unix epoch in seconds or milliseconds, slash-dated forms, and CMTrace, the format of Configuration Manager and Intune logs. A syslog stamp is also read behind a weekday, as in Fri Sep 04 12:34:56. A CMTrace line carries its time after the message, with a bias in minutes when the log writes one: +300 is five hours behind UTC, and a line without a bias is read in the zone the form below names. A CMTrace line longer than 4,096 bytes gets no time and no level, because both stand at its end. Caxton votes the format from the first lines, among the lines it recognizes, so a log whose records span several lines still detects. Day-first dates win when any sampled line proves them, and syslog years roll per line across New Year.
View ▸ Log ▸ Timestamp Format… opens the Log Timestamp Format form, which overrides the vote. It names the detected format and has three fields:
- Format: one of the recognized formats, or Auto-detect to return to the vote.
- Zone: the zone for typed times and for lines that carry none. The first choice is the log's own zone when its lines carry one, otherwise this Mac's; UTC and eight named zones follow.
- Year: the year for syslog lines, which carry none.
Apply sets the choice, and the banner names the format in use. The choice is kept with the session. In a document that is not a log, the menu item does not open the form, and the banner explains that Timestamp Format applies to log documents.
Log Timestamp Format: the format, the zone for lines without one, and the syslog year.
Severity filter and tint
The filter bar's Severity popup (Warn and above, Error and above, Fatal only, and the rest) is a gate over every other condition, OR joiners included, and the digest labels the gate as applying over all rows. Any row in the Filter Lines panel can match by level instead of text, and the panel also takes time window rows, From and To, in the Go to Time forms.
- One vocabulary drives the row tint, the minimap bands, the filter, and the Bookmarks panel: ERROR, WARN, INFO, DEBUG, FATAL and their relatives, in any case. A level field anywhere on the line wins, in key=value or JSON form, under the keys
level,lvl,severity,log_level,loglevel,levelname,log.levelor@lin any case, such aslevel=error,severity=WARNor"log.level":"error". A journaldpriorityfield counts by its number: 0 to 3 are error, 4 is warning, 5 and 6 are info, and 7 is debug. A CMTrace line states its level in itstypefield: 1 is info, 2 is warning and 3 is error, and a severity word in its message is not read. Otherwise the first severity word within the first eight words of the line counts when it stands on its own or in brackets, as in[error]orWarning:, and a severity word deeper in the message is ignored. - View ▸ Log ▸ Severity Patterns… adds your own words or regexes with a level each. They are tried top to bottom, the first match wins, and they win over the built-in words.
The Log Severity Patterns window lists your patterns on the left and edits the selected one on the right: the Pattern, its Level (Trace, Debug, Info, Notice, Warn, Error or Fatal), and the Regular expression and Match case checkboxes. + and − add and remove a pattern, the arrows move the selected one up or down, and Export… and Import… carry the list to another Mac. Every change is saved as you make it, and the window takes the current theme.
Log Severity Patterns: the list on the left, the selected pattern on the right.
- A line with no level word and no timestamp follows the record above it, up to 4,096 lines or 1 MB back, so Error and above keeps the stack trace under its error line.
- A slow pattern pauses regex patterns for ten seconds instead of stalling scrolling; literals and built-in words keep classifying.
Notes on bookmarks and the Bookmarks panel
Edit ▸ Bookmarks ▸ Add Note to Bookmark… puts a note on the caret line, bookmarking it first if needed. The form is titled Note for line and the line's number, with one Note field: Save keeps the note, and Remove Note, offered when the line already has one, takes it off and leaves the bookmark. A noted bookmark shows as a ring in the gutter, and hovering the ring shows the note. Notes move with their line, go when it goes, persist within seconds of a change, and survive relaunch.
The note form, titled with the caret line's number.
The Bookmarks panel: time and level from the log, the line's text, and a note you can edit in place.
The Bookmarks panel (⌥⌘M) lists every bookmark with its timestamp and severity in a log, its first line of text, and its note, editable in place. Double-click navigates. Copy as Incident Notes puts the table on the clipboard as plain text for a ticket.
Extract Incident Window
Edit ▸ Bookmarks ▸ Extract Incident Window…, or the Extract Window button in the Bookmarks panel, takes the lines around every bookmark. Overlapping windows merge, and the result is a new document with a header naming each block's source span. With no bookmarks it works around the caret line. The form counts the events it will extract around and has three fields:
- Window: Lines before and after each event, or Seconds before and after each event (by timestamp), which is offered when the log's timestamps were recognized.
- Before and After: whole numbers from 0 to 100,000,000, 50 each to start. Anything else keeps the form open and shows the rule under the fields. A window in seconds wider than 366 days is cut to 366 days, and Caxton shows no message about it.
Extract writes the new document. It works on a followed log, and refuses only when the document was edited in Caxton while the form was open. Extracting to a new document is a Caxton Pro feature.
Extract Incident Window: lines or seconds, before and after each bookmark.
Following, Catch Up to Live, and honest lag
In tail mode, Follow pins the view to the end of a growing file, with search, filters, and full scrollback. Caxton checks the file for new bytes once a second. Follow starts exactly where the file was loaded, so bytes written between the load and the first poll are shown once.
- Behind by how much. When a file grows faster than one poll absorbs, the Following pill shows how far behind it is, and the read size adapts to what a tick can take.
- Catch Up to Live. Past half a gigabyte of backlog Caxton reloads the last 64 MB and names the byte range it skipped. View ▸ Log ▸ Catch Up to Live does the same on demand. With unsaved edits it asks first, and the automatic catch-up pauses Follow instead of discarding them.
- The skipped range stays reachable. View ▸ Log ▸ Open Skipped Range as Slice opens the bytes a Catch Up left outside the window in their own window.
- Rotation. When a followed file is rotated, the follower finishes reading the old file, shows the rotation prompt naming any unread bytes, and starts fresh on the new file. No byte of the old file lands in the new one.
- Nothing dropped silently. A read error pauses Follow with the reason, and a Catch Up that cannot reload leaves the follower where it was, with a banner that the file could not be read.
- Saving a file that grew. When a file opened in tail mode has grown since it was opened, saving over it would drop the new lines, so Save asks instead, under the heading This file is being appended to, and offers Save As… to keep your edits in a new file. From a tail of a file that is not UTF-8, that new file is a UTF-8 copy of the part that is open.
- Follow works on files reopened in another encoding; appended bytes are transcoded as they arrive. On those files the automatic catch-up is off and the menu item is the way.
Related: Navigation & Bookmarks for bookmarks and Go To, Filtering for conditions and presets, Opening Large Files for tail mode.