Skip to content

Commit e58f9d4

Browse files
committed
Change module name
1 parent fcfd401 commit e58f9d4

6 files changed

Lines changed: 73 additions & 73 deletions

File tree

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Logy logo](https://user-images.githubusercontent.com/5354910/224152840-2c913efa-f7c3-41ea-b0cc-a215a7ec02cf.png)
22

3-
[![Go Report Card](https://goreportcard.com/badge/github.com/procyon-projects/logy)](https://goreportcard.com/report/github.com/procyon-projects/logy)
3+
[![Go Report Card](https://goreportcard.com/badge/codnect.io/logy)](https://goreportcard.com/report/codnect.io/logy)
44
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/procyon-projects/logy/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/procyon-projects/logy/tree/main)
55
[![codecov](https://codecov.io/gh/procyon-projects/logy/branch/main/graph/badge.svg?token=zDm2iL6XLM)](https://codecov.io/gh/procyon-projects/logy)
66

@@ -16,13 +16,13 @@ handlers, and hierarchically named loggers.
1616
To use Logy in your Go project, you need to first install it using the following command:
1717

1818
```bash
19-
go get -u github.com/procyon-projects/logy
19+
go get -u codnect.io/logy
2020
```
2121

2222
After installing Logy, you can import it in your Go code like this:
2323

2424
```go
25-
import "github.com/procyon-projects/logy"
25+
import "codnect.io/logy"
2626
```
2727

2828
Once you've imported Logy, you can start using it to log messages.
@@ -36,7 +36,7 @@ package main
3636

3737
import (
3838
"context"
39-
"github.com/procyon-projects/logy"
39+
"codnect.io/logy"
4040
)
4141

4242
func main() {
@@ -70,7 +70,7 @@ package main
7070

7171
import (
7272
"context"
73-
"github.com/procyon-projects/logy"
73+
"codnect.io/logy"
7474
)
7575

7676
func main() {
@@ -128,7 +128,7 @@ package main
128128

129129
import (
130130
"context"
131-
"github.com/procyon-projects/logy"
131+
"codnect.io/logy"
132132
)
133133

134134
func main() {
@@ -144,7 +144,7 @@ func main() {
144144
The output of the above code execution looks as follows:
145145

146146
```bash
147-
2023-03-19 21:13:06.029186 INFO github.com/procyon-projects/logy/test : The value 30 should be between 128 and 256
147+
2023-03-19 21:13:06.029186 INFO codnect.io/logy/test : The value 30 should be between 128 and 256
148148
```
149149

150150
### Setting Logy As Default Logger
@@ -166,7 +166,7 @@ package main
166166

167167
import (
168168
"context"
169-
"github.com/procyon-projects/logy"
169+
"codnect.io/logy"
170170
)
171171

172172
func main() {
@@ -204,8 +204,8 @@ func main() {
204204
The output of the above code execution looks as follows:
205205

206206
```bash
207-
{"timestamp":"2023-03-20T20:59:02+03:00","level":"INFO","logger":"github.com/procyon-projects/logy/test","message":"This is an information message"}
208-
{"timestamp":"2023-03-20T20:59:02+03:00","level":"INFO","logger":"github.com/procyon-projects/logy/test","message":"info message","mappedContext":{"traceId":"anyTraceId","spanId":"anySpanId"}}
207+
{"timestamp":"2023-03-20T20:59:02+03:00","level":"INFO","logger":"codnect.io/logy/test","message":"This is an information message"}
208+
{"timestamp":"2023-03-20T20:59:02+03:00","level":"INFO","logger":"codnect.io/logy/test","message":"info message","mappedContext":{"traceId":"anyTraceId","spanId":"anySpanId"}}
209209
```
210210

211211
### Error and Stack Trace Logging
@@ -219,7 +219,7 @@ package main
219219
import (
220220
"context"
221221
"errors"
222-
"github.com/procyon-projects/logy"
222+
"codnect.io/logy"
223223
)
224224

225225
func main() {
@@ -242,23 +242,23 @@ func main() {
242242
The output of the above code execution looks as follows:
243243

244244
```bash
245-
2023-03-20 21:17:03.165347 INFO github.com/procyon-projects/logy/test : The value anyValue was not inserted
245+
2023-03-20 21:17:03.165347 INFO codnect.io/logy/test : The value anyValue was not inserted
246246
Error: an error occurred
247247
main.main()
248248
/Users/burakkoken/GolandProjects/procyon-projects/logy/test/main.go:19
249-
2023-03-20 21:17:03.165428 WARN github.com/procyon-projects/logy/test : The value anyValue was not inserted
249+
2023-03-20 21:17:03.165428 WARN codnect.io/logy/test : The value anyValue was not inserted
250250
Error: an error occurred
251251
main.main()
252252
/Users/burakkoken/GolandProjects/procyon-projects/logy/test/main.go:20
253-
2023-03-20 21:17:03.165434 ERROR github.com/procyon-projects/logy/test : The value anyValue was not inserted
253+
2023-03-20 21:17:03.165434 ERROR codnect.io/logy/test : The value anyValue was not inserted
254254
Error: an error occurred
255255
main.main()
256256
/Users/burakkoken/GolandProjects/procyon-projects/logy/test/main.go:21
257-
2023-03-20 21:17:03.165438 DEBUG github.com/procyon-projects/logy/test : The value anyValue was not inserted
257+
2023-03-20 21:17:03.165438 DEBUG codnect.io/logy/test : The value anyValue was not inserted
258258
Error: an error occurred
259259
main.main()
260260
/Users/burakkoken/GolandProjects/procyon-projects/logy/test/main.go:22
261-
2023-03-20 21:17:03.165441 ERROR github.com/procyon-projects/logy/test : The value anyValue was not inserted
261+
2023-03-20 21:17:03.165441 ERROR codnect.io/logy/test : The value anyValue was not inserted
262262
Error: an error occurred
263263
main.main()
264264
/Users/burakkoken/GolandProjects/procyon-projects/logy/test/main.go:23
@@ -270,7 +270,7 @@ A Logger instance is used to log messages for an application. Loggers are named,
270270
using a hierarchical dot and slash separated namespace.
271271

272272
For example, the logger named `github.com/procyon-projects` is a parent of the logger
273-
named `github.com/procyon-projects/logy`.
273+
named `codnect.io/logy`.
274274
Similarly, `net` is a parent of `net/http` and an ancestor of `net/http/cookiejar`
275275

276276
Logger names can be arbitrary strings, however it's recommended that they are based on the package name or struct name
@@ -288,8 +288,8 @@ which creates a named logger with the name of the package it is called from:
288288
log := logy.Get()
289289
```
290290

291-
For example, a logger created in the `github.com/procyon-projects/logy` package would have the
292-
name `github.com/procyon-projects/logy`.
291+
For example, a logger created in the `codnect.io/logy` package would have the
292+
name `codnect.io/logy`.
293293

294294
Alternatively, you can use the `logy.Named()` function to create a named logger with a specific name:
295295

@@ -664,16 +664,16 @@ Here is the benchmark results.
664664
| apex/log | 14494 ns/op | 53 allocs/op |
665665
| logrus | 16246 ns/op | 68 allocs/op |
666666

667-
See [logy-benchmarks](https://github.com/procyon-projects/logy-benchmarks) for more comprehensive and up-to-date benchmarks.
667+
See [logy-benchmarks](https://codnect.io/logy-benchmarks) for more comprehensive and up-to-date benchmarks.
668668

669669
Stargazers
670670
-----------
671-
[![Stargazers repo roster for @procyon-projects/logy](https://reporoster.com/stars/procyon-projects/logy)](https://github.com/procyon-projects/logy/stargazers)
671+
[![Stargazers repo roster for @procyon-projects/logy](https://reporoster.com/stars/procyon-projects/logy)](https://codnect.io/logy/stargazers)
672672

673673
Forkers
674674
-----------
675-
[![Forkers repo roster for @procyon-projects/logy](https://reporoster.com/forks/procyon-projects/logy)](https://github.com/procyon-projects/logy/network/members)
675+
[![Forkers repo roster for @procyon-projects/logy](https://reporoster.com/forks/procyon-projects/logy)](https://codnect.io/logy/network/members)
676676

677677
# License
678678

679-
Logy is released under [MIT License](https://github.com/procyon-projects/logy/blob/main/LICENSE).
679+
Logy is released under [MIT License](https://codnect.io/logy/blob/main/LICENSE).

format_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77

88
func TestAbbreviateLoggerName_ShouldNotAbbreviateIfLengthOfLoggerNameIsNotGreaterThanTargetLength(t *testing.T) {
99
buf := newBuffer()
10-
abbreviateLoggerName(buf, "github.com/procyon-projects/logy/test", 40, false)
11-
assert.Equal(t, "github.com/procyon-projects/logy/test ", buf.String())
10+
abbreviateLoggerName(buf, "codnect.io/logy/test", 40, false)
11+
assert.Equal(t, "codnect.io/logy/test ", buf.String())
1212
}
1313

1414
func TestAbbreviateLoggerName_ShouldAbbreviateIfLengthOfLoggerNameIsGreaterThanTargetLength(t *testing.T) {
1515
buf := newBuffer()
16-
abbreviateLoggerName(buf, "github.com/procyon-projects/logy/test/any", 40, false)
16+
abbreviateLoggerName(buf, "codnect.io/logy/test/any", 40, false)
1717
assert.Equal(t, "g.com/procyon-projects/logy/test/any ", buf.String())
1818
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/procyon-projects/logy
1+
module codnect.io/logy
22

33
go 1.19
44

0 commit comments

Comments
 (0)