Add logging levels for the mock environment for unit tests. Values map to a string name instead of an integer like in the normal environment.
Add a function that implements `log()` in the mock environment.