Skip to content

Commit c2a5753

Browse files
committed
chore: new year, new copyright statements
1 parent 4ce7e5c commit c2a5753

15 files changed

+26
-25
lines changed

BaseLogger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

BaseLogger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpClientLogger.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

@@ -9,15 +9,15 @@ import (
99
"time"
1010
)
1111

12-
//NetHttpClientLogger defines a struct used to log specifically from the client side of API interactions using the net/http package.
12+
// NetHttpClientLogger defines a struct used to log specifically from the client side of API interactions using the net/http package.
1313
type NetHttpClientLogger struct {
1414
http.Client
1515
HttpLogger *HttpLogger
1616
}
1717

18-
//NewNetHttpClientLoggerOptions() takes 1 argument of type logger.Options and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
19-
//The NetHttpClientLogger returned by this function has the given options applied.
20-
//If there is no error, the error value returned will be nil.
18+
// NewNetHttpClientLoggerOptions() takes 1 argument of type logger.Options and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
19+
// The NetHttpClientLogger returned by this function has the given options applied.
20+
// If there is no error, the error value returned will be nil.
2121
func NewNetHttpClientLoggerOptions(options Options) (*NetHttpClientLogger, error) {
2222
HttpLogger, err := NewHttpLogger(options)
2323
if err != nil {
@@ -28,9 +28,9 @@ func NewNetHttpClientLoggerOptions(options Options) (*NetHttpClientLogger, error
2828
}, nil
2929
}
3030

31-
//NewNetHttpClientLogger() takes no arguments and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
32-
//The NetHttpClientLogger returned by this function has the default options applied.
33-
//If there is no error, the error value returned will be nil.
31+
// NewNetHttpClientLogger() takes no arguments and returns 2 objects; a pointer to an instance of an NetHttpClientLogger struct and an error.
32+
// The NetHttpClientLogger returned by this function has the default options applied.
33+
// If there is no error, the error value returned will be nil.
3434
func NewNetHttpClientLogger() (*NetHttpClientLogger, error) {
3535
options := Options{}
3636
HttpLogger, err := NewHttpLogger(options)
@@ -46,12 +46,12 @@ func (logger *NetHttpClientLogger) Logger() *HttpLogger {
4646
return logger.HttpLogger
4747
}
4848

49-
//net.http.Client.CloseIdleConnections() wrapper
49+
// net.http.Client.CloseIdleConnections() wrapper
5050
func (clientLogger *NetHttpClientLogger) CloseIdleConnections() {
5151
clientLogger.Client.CloseIdleConnections()
5252
}
5353

54-
//net.http.Client.Do wrapper with logging
54+
// net.http.Client.Do wrapper with logging
5555
func (clientLogger *NetHttpClientLogger) Do(req *http.Request) (resp *http.Response, err error) {
5656
// start time for logging interval
5757
logger := clientLogger.HttpLogger

HttpLogger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
// Resurface Go Logger provides tools to log API requests and responses from different Golang web frameworks to a complete API system of record. (https://resurface.io)
44
package logger

HttpLoggerForMux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpLoggerRules_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpLogger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpMessage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpRule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

HttpRules.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// © 2016-2022 Resurface Labs Inc.
1+
// © 2016-2023 Resurface Labs Inc.
22

33
package logger
44

@@ -17,6 +17,7 @@ var onceHttpRules sync.Once
1717

1818
/*
1919
package global containing default:
20+
2021
debugRules
2122
standardRules
2223
strictRules
@@ -191,7 +192,7 @@ func (rules *HttpRules) DefaultRules() string {
191192
return rules.defaultRules
192193
}
193194

194-
//*HttpRules.SetDefaultRules(r string) sets the default rules of the logger to rule(s) r
195+
// *HttpRules.SetDefaultRules(r string) sets the default rules of the logger to rule(s) r
195196
func (rules *HttpRules) SetDefaultRules(r string) {
196197
regex := regexp.MustCompile(`(?m)^\s*include default\s*$`)
197198
rules.defaultRules = regex.ReplaceAllString(r, "")

0 commit comments

Comments
 (0)