MultiplexStream

from panda3d.core import MultiplexStream
class MultiplexStream

Bases: ostream

This is a special ostream that forwards the data that is written to it to any number of other sources, for instance other ostreams, or explicitly to a disk file or to system logging utilities. It’s a very handy thing to set Notify to refer to when running in batch mode.

Inheritance diagram

Inheritance diagram of MultiplexStream

__init__(*args, **kwargs)
addFile()

C++ Interface: add_file(const MultiplexStream self, Filename file)

/**
  • Adds the given file to the multiplex output. The file is opened in append

  • mode with line buffering. Returns false if the file cannot be opened.

*/

addOstream()

C++ Interface: add_ostream(const MultiplexStream self, ostream out, bool delete_later)

/**
  • Adds the indicated generic ostream to the multiplex output. The ostream

  • will receive whatever data is sent to the pipe.

*/

addStandardOutput()

C++ Interface: add_standard_output(const MultiplexStream self)

/**
  • Adds the standard output channel.

*/

addSystemDebug()

C++ Interface: add_system_debug(const MultiplexStream self)

/**
  • Adds the system debug output the the multiplex output. This may map to a

  • syslog or some such os-specific output system. It may do nothing on a

  • particular system.

  • Presently, this maps only to OutputDebugString() on Windows.

*/

add_file()

C++ Interface: add_file(const MultiplexStream self, Filename file)

/**
  • Adds the given file to the multiplex output. The file is opened in append

  • mode with line buffering. Returns false if the file cannot be opened.

*/

add_ostream()

C++ Interface: add_ostream(const MultiplexStream self, ostream out, bool delete_later)

/**
  • Adds the indicated generic ostream to the multiplex output. The ostream

  • will receive whatever data is sent to the pipe.

*/

add_standard_output()

C++ Interface: add_standard_output(const MultiplexStream self)

/**
  • Adds the standard output channel.

*/

add_system_debug()

C++ Interface: add_system_debug(const MultiplexStream self)

/**
  • Adds the system debug output the the multiplex output. This may map to a

  • syslog or some such os-specific output system. It may do nothing on a

  • particular system.

  • Presently, this maps only to OutputDebugString() on Windows.

*/

flush()

C++ Interface: flush(const MultiplexStream self)

/**
  • Forces out all output that hasn’t yet been written.

*/