• src/sbbs3/ctrl/MainFormUnit.cpp MainFormUnit.dfm MainFormUnit.h Telnet

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Fri May 22 00:13:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/d0252720e2366c7b022b5f6f
    Modified Files:
    src/sbbs3/ctrl/MainFormUnit.cpp MainFormUnit.dfm MainFormUnit.h TelnetCfgDlgUnit.cpp TelnetCfgDlgUnit.dfm TelnetCfgDlgUnit.h WebCfgDlgUnit.cpp WebCfgDlgUnit.dfm WebCfgDlgUnit.h
    Log Message:
    sbbsctrl: Add "Log to Disk" option for Terminal and Web servers

    The Control Panel could already persist Mail and FTP server log messages
    to daily files in the data/logs dir (MS*.LOG, FS*.LOG), but the Terminal
    and Web servers had no such option - their log output was lost when
    sbbsctrl closed. Extend the same capability to those two servers:

    - bbs_log_msg()/web_log_msg() now write to TS*.LOG / WS*.LOG (mmddyy),
    gated on the new TelnetLogFile/WebLogFile flags and the server running.
    - New "Log to Disk" checkbox on the Terminal Server (General tab) and Web
    Server (Log tab) configuration dialogs, persisted to the registry and
    read from the [TelnetForm]/[WebForm] ini LogFile keys.
    - Wire the Terminal "View ... Log" menu items to the 'ts' prefix (they
    previously had no prefix) and add a "View" submenu to the Web menu with
    the 'ws' prefix.
    - ViewLogClick() closes the Terminal/Web log streams too, so a freshly
    written log can be opened.

    Unlike Mail/FTP (which default on), the two new flags default to off so existing installs don't silently begin writing new log files on upgrade.

    Resolves #1108

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)