-
Notifications
You must be signed in to change notification settings - Fork 28
/
init.go
44 lines (38 loc) · 1.22 KB
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2023-2024 Deepgram SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT
package prerecorded
import (
common "github.com/deepgram/deepgram-go-sdk/pkg/common"
)
// please see pkg/common/init.go for more information
const (
LogLevelDefault = common.LogLevelDefault
LogLevelErrorOnly = common.LogLevelErrorOnly
LogLevelStandard = common.LogLevelStandard
LogLevelElevated = common.LogLevelElevated
LogLevelFull = common.LogLevelFull
LogLevelDebug = common.LogLevelDebug
LogLevelTrace = common.LogLevelTrace
LogLevelVerbose = common.LogLevelVerbose
)
// Initialization options for this SDK.
type InitLib struct {
LogLevel common.LogLevel
DebugFilePath string
}
// InitWithDefault is the SDK Init function for this library using default values.
func InitWithDefault() {
Init(InitLib{
LogLevel: LogLevelDefault,
})
}
// The SDK Init function for this library.
// Allows you to set the logging level and use of a log file.
// Default is output to the stdout.
func Init(init InitLib) {
common.Init(common.InitLib{
LogLevel: init.LogLevel,
DebugFilePath: init.DebugFilePath,
})
}