Skip to content

added sim.log in /sim_build directory#96

Closed
gretzteam wants to merge 1 commit intothemperek:masterfrom
gretzteam:master
Closed

added sim.log in /sim_build directory#96
gretzteam wants to merge 1 commit intothemperek:masterfrom
gretzteam:master

Conversation

@gretzteam
Copy link
Contributor

Everything showing up in the terminal when running a simulation isn't part of any log files when using cocotb-test.
This includes all the log messages from cocotb, such as:
self.dut._log.info("Doing something")

The following changes to the Simulator class enable that: sim.log is created in the /sim_build directory.

@themperek
Copy link
Owner

It is not better to use the standard way to save logs to files provided by pytest/python rather than add something custom?

See: https://docs.pytest.org/en/stable/logging.html

@themperek
Copy link
Owner

My plan is to recognize logging from cocotb/simulator and properly forward it python logging but need some time to do this (with INFO/WARNING etc).

@gretzteam gretzteam closed this Sep 17, 2020
@gretzteam
Copy link
Contributor Author

Implementation using python logger in #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants