Skip to main content
Module

std/log/levels.ts>getLevelByName

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function getLevelByName
import { getLevelByName } from "https://deno.land/std@0.211.0/log/levels.ts";

Returns the numeric log level associated with the passed, stringy log level name.

Returns

number
  • Deprecated (will return LogLevel after 0.211.0)