Use the Extensions API
- Document Object Python API Reference
- Condition Syntax Reference
- Python Modules Available to Extensions
- Extension Parameters
- Extension ActionOnError
- Supported Character Sets
- Extension Script Samples
- Extension State
- Use Vault Parameters in Your Extension
- Create an Extension With the API
- Log Messages From an Extension
- Test Strategies and Good Practices
Logging Messages From an Indexing Pipeline Extension
The following procedure describes how to log messages from an indexing pipeline extension using the Extension API (see Extension API).
Create an extension script (see Creating an Indexing Pipeline Extension With the API).
In the extension script, use the
Logmethod (see Log).
Rebuild the source to run the extension and impact how the content is indexed.
Once an item is processed and the extension is applied, a log entry can be viewed in the Coveo Administration Console Log Browser (see Log Browser). Once the source is rebuilt, all log entries are available.
In the log browser, you can see your log message only when expanding a row detailing an
Applying extension Stage. Your log message will appear only when the
Add Operation Result is
Completed. By design, any other value for Operation, Result, or Stage means that there’s no log message available.