Skip to content

Commit 643d221

Browse files
nipung90facebook-github-bot
authored andcommitted
Add base logger class for torchrec logging (#3141)
Summary: Pull Request resolved: #3141 Adds the base logger for torchrec static api logging. This logger is to align with the broader pytorch logging framework that will be worked on in H2 2025. It should not contain any torchrec specific logic. Reviewed By: kausv, saumishr Differential Revision: D75791932 fbshipit-source-id: 9e976b7beebe0f3cf244100e7e9591c9c2633936
1 parent 74e3e50 commit 643d221

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
8+
import logging
9+
10+
11+
__all__: list[str] = []
12+
13+
_log_handlers: dict[str, logging.Handler] = {
14+
"default": logging.NullHandler(),
15+
}

0 commit comments

Comments
 (0)