- Use the Extensions API
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.