72 lines
932 B
ReStructuredText
72 lines
932 B
ReStructuredText
|
|
Debug
|
|
^^^^^
|
|
|
|
**INFO_DEBUG**
|
|
^^^^^^^^^^^^^^
|
|
|
|
Show info debug, show in message box.
|
|
|
|
.. code-block:: python
|
|
|
|
import easymacro as app
|
|
|
|
def info():
|
|
app.msgbox(INFO_DEBUG)
|
|
return
|
|
|
|
Show in shell.
|
|
|
|
.. code-block:: python
|
|
|
|
import easymacro as app
|
|
|
|
def info():
|
|
app.debug(INFO_DEBUG)
|
|
return
|
|
|
|
|
|
**Log error**
|
|
^^^^^^^^^^^^^
|
|
|
|
Show error message in shell.
|
|
|
|
.. code-block:: python
|
|
|
|
import easymacro as app
|
|
|
|
def error():
|
|
msg = 'My error 500'
|
|
app.error(msg)
|
|
return
|
|
|
|
|
|
**Log debug**
|
|
^^^^^^^^^^^^^
|
|
|
|
Show debug message in shell.
|
|
|
|
.. code-block:: python
|
|
|
|
import easymacro as app
|
|
|
|
def error():
|
|
msg = 'Verify this data...'
|
|
app.debug(msg)
|
|
return
|
|
|
|
|
|
**Log info**
|
|
^^^^^^^^^^^^^
|
|
|
|
Show info message in shell.
|
|
|
|
.. code-block:: python
|
|
|
|
import easymacro as app
|
|
|
|
def error():
|
|
msg = 'Start process...'
|
|
app.info(msg)
|
|
return
|