Skip to content

Commit

Permalink
Deprecate support for directly accessing logger
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Oct 1, 2024
1 parent 9e410c0 commit 95e2896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/rmm/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ struct bytes {
*
* @return spdlog::logger& The logger.
*/
RMM_EXPORT inline spdlog::logger& logger()
[[deprecated(
"Support for direct access to spdlog loggers in rmm is planned for "
"removal")]] RMM_EXPORT inline spdlog::logger&
logger()
{
static detail::logger_wrapper wrapped{};
return wrapped.logger_;
Expand Down

0 comments on commit 95e2896

Please sign in to comment.