Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added sim.log in /sim_build directory #96

Closed
wants to merge 1 commit into from

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