#include <PythonLoggingChannel.h>
|
| static void | drainQueue (State &state) |
| | Deliver all queued messages to Python. The GIL must be held.
|
| |
| static int | pendingCallDrainQueue (void *stateHolder) |
| | Callback with the signature required by Py_AddPendingCall.
|
| |
|
| const std::shared_ptr< State > | m_state |
| | Shared with any outstanding pending calls. It is set in the constructor and never reset.
|
| |
Definition at line 26 of file PythonLoggingChannel.h.
◆ PythonLoggingChannel() [1/3]
| Poco::PythonLoggingChannel::PythonLoggingChannel |
( |
| ) |
|
◆ ~PythonLoggingChannel()
| Poco::PythonLoggingChannel::~PythonLoggingChannel |
( |
| ) |
|
|
override |
◆ PythonLoggingChannel() [2/3]
◆ PythonLoggingChannel() [3/3]
◆ close()
| void Poco::PythonLoggingChannel::close |
( |
| ) |
|
|
override |
◆ closeImpl()
| void Poco::PythonLoggingChannel::closeImpl |
( |
| ) |
|
|
private |
◆ drainQueue()
| void Poco::PythonLoggingChannel::drainQueue |
( |
State & |
state | ) |
|
|
staticprivate |
◆ enqueue()
| void Poco::PythonLoggingChannel::enqueue |
( |
Poco::Message && |
msg | ) |
|
|
private |
◆ flush()
| void Poco::PythonLoggingChannel::flush |
( |
| ) |
|
◆ log() [1/2]
| void Poco::PythonLoggingChannel::log |
( |
const Poco::Message & |
msg | ) |
|
|
override |
◆ log() [2/2]
| void Poco::PythonLoggingChannel::log |
( |
Poco::Message && |
msg | ) |
|
|
override |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pendingCallDrainQueue()
| int Poco::PythonLoggingChannel::pendingCallDrainQueue |
( |
void * |
stateHolder | ) |
|
|
staticprivate |
Callback with the signature required by Py_AddPendingCall.
It takes ownership of a heap-allocated std::shared_ptr<State> so that the state outlives the channel if the call runs after it was destroyed.
Definition at line 158 of file PythonLoggingChannel.cpp.
References drainQueue().
Referenced by enqueue().
◆ m_state
| const std::shared_ptr<State> Poco::PythonLoggingChannel::m_state |
|
private |
The documentation for this class was generated from the following files: