eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'LoggingStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: LoggingStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--LoggingStream

Package:
stx:libbasic2
Category:
Streams-Misc
Version:
rev: 1.7 date: 2014/05/29 10:59:23
user: cg
file: LoggingStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
cg

Description:


Useful for debugging - stream operations are logged in human readable form
on a separate logger stream, while stream operations are forwarded to the underlying
loggedStream.

Unfinished - may need more protocol to be intercepted.

sample use, logging operations on a socket stream:
    sock := ... Socket connectTo: ...
    s := LoggingStream new loggedStream: sock.
    ...
    use s instead of sock
    ...


[instance variables:]

[class variables:]


Related information:



Class protocol:

instance creation
o  on: aStream
Create & return a new instance for aStream, logging to the Transcript.

o  on: aStream logger: aLoggerStream
Create & return a new instance for aStream, logging to aLoggerStream.


Instance protocol:

accessing
o  loggedStream

o  loggedStream: something

o  logger

o  logger: something

initialization
o  initializeOn: aStream logger: aLogger

logging
o  log: messageString

stream protocol
o  atEnd

o  flush

o  next

o  next: n

o  nextBytes: n

o  nextPut: something

o  nextPutAll: aCollection

o  peek

o  peekOrNil

o  readWait

o  skipSeparators

o  upToEnd



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 02:06:05 GMT