# Logging at Library Constructor

**URL:** <https://forum.robotframework.org/t/logging-at-library-constructor/8733>\
**Category:** Robot Framework\
**Created:** [2 April 2025 16:39 UTC](https://forum.robotframework.org/t/logging-at-library-constructor/8733 "2025-04-02T16:39:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmtan01](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@wmtan01](https://forum.robotframework.org/u/wmtan01)\
**Post date:** [2 April 2025 16:39 UTC](https://forum.robotframework.org/t/logging-at-library-constructor/8733/1 "2025-04-02T16:39:50Z")

</div>

Hi,

We use Python to make libraries in our project, these libraries would sometimes have constructor code to prep the library for use. We noticed that there is no logging generated (at least on log.html) with regards to the things that happen in the constructor.

We kind of deduced this is because the html logging is not active yet at the “Settings” section of the suite. We did see the logs on the terminal and in the console with logger.info/logger.console but wanted it to be included in the html file as well if possible. Is there a way to add information from constructors when libraries are imported on the html logs?

---

<div class="post-metadata">

**Author:** ![Artur1](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Artur1](https://forum.robotframework.org/u/Artur1)\
**Post date:** [3 April 2025 20:46 UTC](https://forum.robotframework.org/t/logging-at-library-constructor/8733/2 "2025-04-03T20:46:26Z")

</div>

Hi, logger.warn should be at the top of HTML logs.
