• src/sbbs3/logfile.cpp

    From rswindell@VERT to CVS commit on Thu Dec 11 03:05:22 2014
    src/sbbs3 logfile.cpp 1.54 1.55
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv27975

    Modified Files:
    logfile.cpp
    Log Message:
    If user is online, log the current user alias along with the error details in the data/error.log.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Fri Aug 21 22:49:27 2015
    src/sbbs3 logfile.cpp 1.56 1.57
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv27632

    Modified Files:
    logfile.cpp
    Log Message:
    Fix warning on fprintf(fp, str) by changing from fprintf() to fputs().



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 8 11:56:15 2016
    src/sbbs3 logfile.cpp 1.58 1.59
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv23342

    Modified Files:
    logfile.cpp
    Log Message:
    Overhaul these functions:
    Use fopen/fprintf (buffered writes) rather than open/write.
    Use safe_snprintf() and SAFEPRINTF for safe string formatting.
    Use a variable for line-endings (in preparation for support for Unix-style log files for those sysops that prefer them).
    hacklog() now supports a NULL 'text' argument.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Fri Apr 13 16:59:06 2018
    src/sbbs3 logfile.cpp 1.60 1.61
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26751

    Modified Files:
    logfile.cpp
    Log Message:
    errormsg() logs the "useron", when applicable, even for timed events (e.g.
    REP unpacking).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Oct 25 19:15:09 2018
    src/sbbs3 logfile.cpp 1.62 1.63
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11622

    Modified Files:
    logfile.cpp
    Log Message:
    Now that sbbs_t::lputs() adds the <useron alias>, adding it here (useron=x)
    to the log message becomes redundant.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Jan 4 14:15:13 2019
    src/sbbs3 logfile.cpp 1.64 1.65
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv19104

    Modified Files:
    logfile.cpp
    Log Message:
    Partially revert the change in rev 1.63: eprintf() does not log the
    <useron alias>, so we need to include it in the log message here if we
    want the current user's alias included in event related log messages
    (e.g. unpacking QWK-REP packages).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Jun 23 13:12:04 2019
    src/sbbs3 logfile.cpp 1.65 1.66
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25331

    Modified Files:
    logfile.cpp
    Log Message:
    Use ctime_r() for the error.log timestamp string rather thean timestr() -
    this insures:
    1. the timestamp always includes the seconds
    2. the tiemstamp is always in 24-hour format (no am/pm indication)

    For systems that are configured (in SCFG) for "Military" (24 hour) time format, the error.log timestamps should appear the same as before.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Aug 8 12:32:30 2020
    src/sbbs3 logfile.cpp 1.68 1.69
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv30030

    Modified Files:
    logfile.cpp
    Log Message:
    *lower* log-levels are more severe.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Dec 20 17:11:56 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/48f73ca167262efb1a09078f
    Modified Files:
    src/sbbs3/logfile.cpp
    Log Message:
    Don't log errno info for ERR_CHK errormsg() calls

    The errno (global error number) information is not relevant for any sbbs "checking" type errors.
    Also, use safe_strerror() for thread-safe errno descriptions.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun May 16 16:47:09 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/3d1e05e5015a0872a2a72fb7
    Modified Files:
    src/sbbs3/logfile.cpp
    Log Message:
    Log the current Git branch and hash along with every error

    This eliminates any ambiguity about what exact version was in use when each error is logged.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Jan 30 16:00:04 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/d99905a420dd2f394c5dce69
    Modified Files:
    src/sbbs3/logfile.cpp
    Log Message:
    Lowercase the topics in hack and spam action messages
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Feb 25 18:06:16 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/62852439c523e1d09e6b10b1
    Modified Files:
    src/sbbs3/logfile.cpp
    Log Message:
    Don't log errno value and description as part of ERROR log msg, when 0

    If errno is 0, it's definitely no proividing anything of value here. Of
    course, sometimes errno might be non-zero and still be unrelated to the error message. <shrug>

    For Nelgin:
    !ERROR 0 (Success) in exec.cpp line 644 (js_execfile) compiling "something.js" access=0
    <nelgin> I don't quite get why a successful execution is logged as an error
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thu Oct 17 21:57:19 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1fecea061764630c37d903bc
    Modified Files:
    src/sbbs3/logfile.cpp
    Log Message:
    Fix extra line feed (and blank line) when long (> 78 char) strings were logged

    to node.log via sbbs_t::log()
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net