Skip to content
Discussion options

You must be logged in to vote

Hi - I think the issue has to do with JAX using absl.logging rather than Python's built-in logging system. I can reproduce the problem by replacing the jax import with a simple use of absl.logging, which seems to affect subsequent Python logging:

import logging
import absl.logging
absl.logging.info('message from absl')

LOGGER = logging.getLogger("run")
console = logging.StreamHandler()
file = logging.FileHandler(filename="log.log")
logging.basicConfig(level=logging.INFO, handlers=[console, file])

LOGGER.info("test")  # Not shown

I don't know enough about absl.logging to know why this is happening (though the absl.logging source does appear to modify default logging levels). For what it'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GeorgeGradinariu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants