BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/ctrl/MainFormUnit.cpp MainFormUnit.dfm MainFormUnit.h Telnet
De:       Rob Swindell (on Windows 11)
Data:     Fri, 22 May 2026 00:13:47 -0700
-----------------------------------------------------------
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) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]