- 集成 lumberjack.v2 库实现日志轮转功能 - 创建 log 包并实现基础日志记录器 - 实现 Info、Error、Warn、Debug 四种日志级别方法 - 配置日志文件大小限制为 1MB 和保留策略 - 实现日志同时输出到文件和终端的功能 - 添加错误日志的堆栈跟踪信息记录 |
||
|---|---|---|
| autoMigrate | ||
| baseGrpc | ||
| excel | ||
| log | ||
| mqtt/client | ||
| server | ||
| task | ||
| tcp | ||
| utils | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
README.md
Copyright 2021 black1552
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.