+
Skip to content

[log] Rename log package to dlog #120

Open
@at15

Description

@at15

The main reason is gommon/log does NOT have package level methods to log with default config.
So most time in pkg.go I have the following code

import (
    dlog "github.com/dyweb/gommon/log"
)

var logReg = dlog.NewRegistry()
var log = logReg.Logger()

To avoid the rename during import, we can just rename the package because log is used more often, while the logger of gommon/log is a drop in replacement for many logging libraries, the library itself is not. This is also why we use errors instead of derrors. The d prefix from dyweb

It will break all the application/dependencies that depend on it, but AFIK there is no third party library or application using gommon/log

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载