log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Logging...
 
  Logging...
  sinns (18:18 1/10/2014)
  Phlamethrower (12:29 3/10/2014)
    sinns (18:51 3/10/2014)
 
Simon Inns Message #123380, posted by sinns at 18:18, 1/10/2014
Member
Posts: 73
The application I'm currently working on would benefit from some debug log output. I noticed that OSLib contains references to syslog SWIs but I think these are not really SWIs as I don't see anything about it in the PRMs...

Does anyone have any recommendations about this? What is the best way to handle log files in RISC OS applications?
  ^[ Log in to reply ]
 
Jeffrey Lee Message #123382, posted by Phlamethrower at 12:29, 3/10/2014, in reply to message #123380
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15100
There is a syslog module here. RISC OS Select is the only OS version to have syslog functionality built-in, which is why it isn't part of the PRMs (unless you look at ROL's docs, I guess). I haven't used it much myself, so I'm not sure how flexible it is (about all that I know is that the default behaviour is to log to a program-specific log file in !Scrap).

It's also worth investigating Reporter, which in addition to managing the log output of your program also allows you to log many system events so you can see what's going on behind the scenes.
  ^[ Log in to reply ]
 
Simon Inns Message #123383, posted by sinns at 18:51, 3/10/2014, in reply to message #123382
Member
Posts: 73
Thanks Jeffrey, I'll take a look at those links.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Logging...