Documentation
¶
Overview ¶
******************************************************************************
- Copyright 2017 Dell Inc. *
- 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. *
- @microservice: support-logging-client-go library
- @author: Ryan Comer, Dell
- @version: 0.5.0 ******************************************************************************
Index ¶
- type LoggingClient
- func (lc LoggingClient) Debug(msg string, labels ...string) error
- func (lc LoggingClient) Error(msg string, labels ...string) error
- func (lc LoggingClient) Info(msg string, labels ...string) error
- func (lc LoggingClient) Trace(msg string, labels ...string)
- func (lc LoggingClient) Warn(msg string, labels ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingClient ¶
type LoggingClient struct {
RemoteUrl string
LogFilePath string
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(owningServiceName string, remoteUrl string) LoggingClient
Create a new logging client for the owning service
func (LoggingClient) Debug ¶
func (lc LoggingClient) Debug(msg string, labels ...string) error
Log a DEBUG level message
func (LoggingClient) Error ¶
func (lc LoggingClient) Error(msg string, labels ...string) error
Log an ERROR level message
func (LoggingClient) Info ¶
func (lc LoggingClient) Info(msg string, labels ...string) error
Log an INFO level message
func (LoggingClient) Trace ¶
func (lc LoggingClient) Trace(msg string, labels ...string)
Log a TRACE level message
Click to show internal directories.
Click to hide internal directories.