Updates:
        Status: Started
        Owner: pekka.klarck
        Labels: -Priority-Medium Priority-High

Comment #6 on issue 339 by pekka.klarck: Provide logging facility for developers of Robot Framework Extension Libraries
http://code.google.com/p/robotframework/issues/detail?id=339

This issue was updated by revision e7c2528740c8.

Public logging API is now available and can be used e.g. like below. Notice that the location of the API (i.e. where you import it from) may still change.

    from robot.api import logger

    def my_keyword():
        logger.debug('Hello, world!')
        logger.info('<b>Hello, world!</b>', html=True)

A big benefit of this API is that timestamps are accurate. This also makes issue 456 less important.

Things to be done:
1) Add possibility to write messages to console
2) Decide is `robot.api.logger` good location for the API
3) Document the API in code
4) Document the API in User Guide

Reply via email to