Struct: aws.LogLevelType

import "../ibm-cos-sdk-go/aws"

Overview

Value returns the LogLevel value or the default value LogOff if the LogLevel is nil. Safe to use on nil value LogLevelTypes.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Constructor Functions collapse

Method Summary collapse

Function Details

func LogLevel(l LogLevelType) *LogLevelType

LogLevel returns the pointer to a LogLevel. Should be used to workaround not being able to take the address of a non-composite literal.



13
14
15
// File 'aws/logger.go', line 13

func LogLevel(l LogLevelType) *LogLevelType { return &l }

Method Details

func (l *LogLevelType) AtLeast(v LogLevelType) bool

AtLeast returns true if this LogLevel is at least high enough to satisfies v. Is safe to use on nil value LogLevelTypes. If LogLevel is nil, will default to LogOff comparison.



37
38
39
40
// File 'aws/logger.go', line 37

func (l *LogLevelType) AtLeast(v LogLevelType) bool { c := l.Value() return c >= v }

func (l *LogLevelType) Matches(v LogLevelType) bool

Matches returns true if the v LogLevel is enabled by this LogLevel. Should be used with logging sub levels. Is safe to use on nil value LogLevelTypes. If LogLevel is nil, will default to LogOff comparison.



29
30
31
32
// File 'aws/logger.go', line 29

func (l *LogLevelType) Matches(v LogLevelType) bool { c := l.Value() return c&v == v }

func (l *LogLevelType) Value() LogLevelType



19
20
21
22
23
24
// File 'aws/logger.go', line 19

func (l *LogLevelType) Value() LogLevelType { if l != nil { return *l } return LogOff }