Skip to content

LogLevels

Namespace: TypeSafe.AI.Sdk

public static class LogLevels

Supported log level names, from most to least verbose.

Inheritance: object

View source

public static readonly IReadOnlyList<string> All

Canonical names matching the JS SDK: debug, info, warn, error, off.

Value: IReadOnlyList<string>

View source

public const TypeSafeLogLevel Default = Warn

Default log level (warn).

Value: TypeSafeLogLevel

View source

public static TypeSafeLogLevel Parse(string value, string source)

Validate a configured log level, throwing TypeSafeException for unknown values.

Parameters

Name Type Description
value string
source string

Returns: TypeSafeLogLevel

View source

public static string ToJsName(TypeSafeLogLevel level)

JS-style name for a level.

Parameters

Name Type Description
level TypeSafeLogLevel

Returns: string

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API