Logging to one of multiple loggers #7611
Unanswered
jbuckman
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Hello!
There is no way to set what values go into which logger when you are calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm confused as to the intended syntax for using multiple loggers. Before, I used:
self.log(k, v, sync_dists=True)
Now, I want to instead log to only one of my three loggers. I'd like to do something like this:
self.log(k, v, sync_dists=True, logger_id=2
This page does not give a direct way to do this. Instead, it makes me directly access the loggers themselves. I can call the individual write functions on my loggers, but I'm concerned that I will be losing whatever useful functionality comes with sync_dists, and my code will break in the DDP case.
How should I be doing this?
Beta Was this translation helpful? Give feedback.
All reactions