Subj : Re: Add and object to an array To : Mortifis From : Digital Man Date : Thu Jul 18 2019 04:30 pm Re: Re: Add and object to an array By: Mortifis to echicken on Thu Jul 18 2019 08:16 pm > > Re: Re: Add and object to an array > > By: Mortifis to echicken on Thu Jul 18 2019 18:30:52 > > > Mo> I tried a bunch of methods I researched but none of them worked. > > Mo> still not sure how to get console.log() to work, says undefined. > > > console.log() is a thing in web browsers and in node.js, but not in > > Synchronet's JS > > environment. Some JS examples you see on the web won't transfer > > perfectly into this space. > > > We do have the log(level, message) function here: > > > log(LOG_DEBUG, 'This is a debug message'); > > > or you can omit the loglevel parameter: > > > log('This is a message, probably at the INFO level (?)'); > > I saw that, I had thought that writes to a file in /sbbs/data/logs/ That depends. It goes where log output goes which may be to the BBS's local console, to windows in the Synchronet Control Panel, to files, to the Windows NT event viewer, to *nix syslog (and whatever it does with it) - so yeah, log() messages can go all kinds of places. digital man Synchronet/BBS Terminology Definition #42: ISDN = Integrated Services Digital Network Norco, CA WX: 83.5øF, 50.0% humidity, 14 mph E wind, 0.00 inches rain/24hrs --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .