Determine LOG-MANAGER STREAM

avtarjain

New Member
Hi,

Is there a way to determine output stream handle being used by OE LOG-MANAGER?
There is a need where we have no choice other than using PUT statement to output certain information into same LOG FILE already opened by LOG-MANAGER.
If program can determine outstream being used by LOG-MANAGER and then it can be reused for PUT statement in parallel to other :WRITE-MESSAGE commands.

Thanks
 

peterjudge

Member
tl;dr : you can't.

The LOG-MANAGER is built-in to the AVM and does not expose how it writes to disk, to the ABL. It does expose where (via the LOG-MANAGER:LOGFILE-NAME attribute).

What are you trying to write the the LOG-MANAGER that you cannot write using the WRITE-MESSAGE() method?

I would be very careful of trying to write directly to the same logfile, especially on an AppServer, where multiple sessions and/or processes may be writing to that file.
 
Top