Documentation
¶
Overview ¶
Copyright 2018 The Nuclio Authors. 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.
Index ¶
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(format interface{}, vars ...interface{})
- func (l *Logger) DebugCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) DebugWith(format interface{}, vars ...interface{})
- func (l *Logger) DebugWithCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) Error(format interface{}, vars ...interface{})
- func (l *Logger) ErrorCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) ErrorWith(format interface{}, vars ...interface{})
- func (l *Logger) ErrorWithCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) Flush()
- func (l *Logger) GetChild(name string) logger.Logger
- func (l *Logger) Info(format interface{}, vars ...interface{})
- func (l *Logger) InfoCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) InfoWith(format interface{}, vars ...interface{})
- func (l *Logger) InfoWithCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) Warn(format interface{}, vars ...interface{})
- func (l *Logger) WarnCtx(ctx context.Context, format interface{}, vars ...interface{})
- func (l *Logger) WarnWith(format interface{}, vars ...interface{})
- func (l *Logger) WarnWithCtx(ctx context.Context, format interface{}, vars ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(client appinsights.TelemetryClient, name string, level logger.Level) (*Logger, error)
func (*Logger) Debug ¶
func (l *Logger) Debug(format interface{}, vars ...interface{})
Debug emits an unstructured debug log
func (*Logger) DebugWith ¶
func (l *Logger) DebugWith(format interface{}, vars ...interface{})
DebugWith emits a structured debug log
func (*Logger) DebugWithCtx ¶
DebugWithCtx emits a structured debug log
func (*Logger) Error ¶
func (l *Logger) Error(format interface{}, vars ...interface{})
Error emits an unstructured error log
func (*Logger) ErrorWith ¶
func (l *Logger) ErrorWith(format interface{}, vars ...interface{})
ErrorWith emits a structured error log
func (*Logger) ErrorWithCtx ¶
ErrorWithCtx emits a structured error log
func (*Logger) Info ¶
func (l *Logger) Info(format interface{}, vars ...interface{})
Info emits an unstructured informational log
func (*Logger) InfoWith ¶
func (l *Logger) InfoWith(format interface{}, vars ...interface{})
InfoWith emits a structured info log
func (*Logger) InfoWithCtx ¶
InfoWithCtx emits a structured info log
func (*Logger) Warn ¶
func (l *Logger) Warn(format interface{}, vars ...interface{})
Warn emits an unstructured warning log
func (*Logger) WarnWith ¶
func (l *Logger) WarnWith(format interface{}, vars ...interface{})
WarnWith emits a structured warning log
func (*Logger) WarnWithCtx ¶
WarnWithCtx emits a structured warn log