We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9b99b commit 542cb14Copy full SHA for 542cb14
cse/cse.go
@@ -815,3 +815,13 @@ type Simulation struct {
815
func CreateEmptySimulation() Simulation {
816
return Simulation{}
817
}
818
+
819
+func SetupLogging() {
820
+ success := C.cse_log_setup_simple_console_logging()
821
+ if int(success) < 0 {
822
+ log.Println("Could not set up console logging!")
823
+ } else {
824
+ C.cse_log_set_output_level(C.CSE_LOG_SEVERITY_INFO)
825
+ log.Println("Console logging set up with severity: INFO")
826
+ }
827
+}
main.go
@@ -7,6 +7,7 @@ import (
7
)
8
9
func main() {
10
+ cse.SetupLogging()
11
sim := cse.CreateEmptySimulation()
12
13
// Creating a command channel
0 commit comments