Skip to content

Make it possible to silence MMDeploy spdlog logger instance, move some log messages to DEBUG #78

@tehkillerbee

Description

@tehkillerbee

Hello,

I have noticed that mmdeploy SDK generates quite a bit of log output when running inference. Therefore, I wanted to silence it. I did that by setting the log level early in my program.

auto mmdepLogger = mmdeploy::GetLogger();
mmdepLogger->set_level(spdlog::level::off);

While this almost works as expected, it looks like mmdeploy still manages to print output to the log.

[2022-01-14 16:48:58.176] [mmdeploy] [info] [model.cpp:97] Register 'DirectoryModel'

Is there a better way to silence mmdeploy? :)

Maybe some of these log messages should be DEBUG only to avoid them showing up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions