src/modules/app_python/README.TestCase-Loggers
raw| 1 | |
| 2 | Example of using loggers in Python: |
| 3 | |
| 4 | loadmodule "app_python.so" |
| 5 | modparam("app_python", "script_name", "/path/to/Loggers.py") |
| 6 | modparam("app_python", "mod_init_function", "mod_init") |
| 7 | modparam("app_python", "child_init_method", "child_init") |
| 8 | |
| 9 | ... |
| 10 | |
| 11 | route |
| 12 | { |
| 13 | python_exec("TestLoggers", "Test Message\n"); |
| 14 | ... |
| 15 | } |
| 16 |