Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.199.0/log/levels.ts";

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

Returns

number