@tauri-apps/plugin-log
Type Aliases
LogOptions
Type declaration
Member | Type |
---|---|
file | string |
keyValues | Record <string , string | undefined > |
line | number |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L9
Functions
attachConsole()
Returns
Promise
<UnlistenFn
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L192
debug()
Logs a message at the debug level.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Examplesimport { debug } from ‘@tauri-apps/plugin-log’; |
options ? | LogOptions | - |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L158
error()
Logs a message at the error level.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Examplesimport { error } from ‘@tauri-apps/plugin-log’; |
options ? | LogOptions | - |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L92
info()
Logs a message at the info level.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Examplesimport { info } from ‘@tauri-apps/plugin-log’; |
options ? | LogOptions | - |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L136
trace()
Logs a message at the trace level.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Examplesimport { trace } from ‘@tauri-apps/plugin-log’; |
options ? | LogOptions | - |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L180
warn()
Logs a message at the warn level.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Examplesimport { warn } from ‘@tauri-apps/plugin-log’; |
options ? | LogOptions | - |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/log/guest-js/index.ts#L114
© 2024 Tauri Contributors. CC-BY / MIT