X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPyConsole%2FPyConsole_Console.cxx;h=a3991bf88a8885103e52a684776b8716e737f344;hb=949661e3432745e77dfc32ac83ee7d06c7e57ced;hp=f386ebfdb6ee77588d7a0af85fcc0f2df911ce49;hpb=e49ea868e39afd8b5b3d74708997f2b3c705b0b7;p=modules%2Fgui.git diff --git a/src/PyConsole/PyConsole_Console.cxx b/src/PyConsole/PyConsole_Console.cxx index f386ebfdb..a3991bf88 100644 --- a/src/PyConsole/PyConsole_Console.cxx +++ b/src/PyConsole/PyConsole_Console.cxx @@ -350,6 +350,23 @@ void PyConsole_Console::updateActions() myActions[SelectAllId]->setEnabled( !myEditor->document()->isEmpty() ); } +/*! + \brief Start python trace logging + \param fileName the path to the log file +*/ +void PyConsole_Console::startLog( const QString& fileName ) +{ + myEditor->startLog( fileName ); +} + +/*! + \brief Stop python trace logging +*/ +void PyConsole_Console::stopLog() +{ + myEditor->stopLog(); +} + /** * Similar to constructor of the base class but using enhanced objects. * TODO: this should really be done in a factory to avoid code duplication.