LogLevels
Namespace: TypeSafe.AI.Sdk
public static class LogLevelsSupported log level names, from most to least verbose.
Inheritance: object
Fields
Section titled “Fields”public static readonly IReadOnlyList<string> AllCanonical names matching the JS SDK: debug, info, warn, error, off.
Value: IReadOnlyList<string>
Default
Section titled “Default”public const TypeSafeLogLevel Default = WarnDefault log level (warn).
Value: TypeSafeLogLevel
Methods
Section titled “Methods”Parse(string, string)
Section titled “Parse(string, string)”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
ToJsName(TypeSafeLogLevel)
Section titled “ToJsName(TypeSafeLogLevel)”public static string ToJsName(TypeSafeLogLevel level)JS-style name for a level.
Parameters
| Name | Type | Description |
|---|---|---|
level |
TypeSafeLogLevel |
Returns: string
MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API