Skip to content

Unable to set log level #947

Closed
Closed
@yosriady

Description

@yosriady

Hello, thank you for your work on ethers.js. I'm trying to set the log level on ethers@5.0.5:

import { ethers } from 'ethers'

ethers.utils.Logger.setLogLevel(ethers.utils.Logger.levels.OFF)

But that does not appear to work. Instead, it outputs:

invalid log level - OFF

What's the right way to set the log level? I've looked at #379, but the API seems to have changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions