diff --git a/.gitignore b/.gitignore index 418b3b88..40c8400d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.iml *.p12 .gradle +.vscode/ /Android/local.properties /Android/keystore.properties /Android/.idea/ diff --git a/Android/app/src/go/internal/logging/logging.go b/Android/app/src/go/internal/logging/logging.go new file mode 100644 index 00000000..0a6cd806 --- /dev/null +++ b/Android/app/src/go/internal/logging/logging.go @@ -0,0 +1,26 @@ +// Copyright 2024 Jigsaw Operations LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package logging + +import ( + "io" + "log" + "os" +) + +var Debug = log.New(io.Discard, "[DEBUG] ", log.LstdFlags) +var Info = log.New(os.Stdout, "[INFO] ", log.LstdFlags) +var Warn = log.New(os.Stderr, "[WARN] ", log.LstdFlags) +var Err = log.New(os.Stderr, "[ERROR] ", log.LstdFlags)