All Projects → devfeel → Dotlog

devfeel / Dotlog

Simple and easy go log framework

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Dotlog

Bash Oo Framework
Bash Infinity is a modern standard library / framework / boilerplate for Bash
Stars: ✭ 5,247 (+17390%)
Mutual labels:  framework, logging
Jmcs
Java framework to homogenize your GUI across all the 3 main desktop OS, and further integrates your app to them.
Stars: ✭ 5 (-83.33%)
Mutual labels:  framework, logging
Dozzle
Realtime log viewer for docker containers.
Stars: ✭ 684 (+2180%)
Mutual labels:  logging, log
React Log
React for the Console
Stars: ✭ 553 (+1743.33%)
Mutual labels:  logging, log
Nim Morelogging
Logging library for Nim
Stars: ✭ 29 (-3.33%)
Mutual labels:  logging, log
Gf
GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
Stars: ✭ 6,501 (+21570%)
Mutual labels:  framework, logging
Logging Helpers
Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.
Stars: ✭ 5 (-83.33%)
Mutual labels:  logging, log
Githubupdates
Cocoa framework to install application updates from GitHub releases.
Stars: ✭ 393 (+1210%)
Mutual labels:  framework, app
Yii2 Slack Log
Pretty Slack log target for Yii 2
Stars: ✭ 24 (-20%)
Mutual labels:  logging, log
Yii2 Telegram Log
Telegram log target for Yii 2
Stars: ✭ 24 (-20%)
Mutual labels:  logging, log
Gear
A lightweight, composable and high performance web service framework for Go.
Stars: ✭ 544 (+1713.33%)
Mutual labels:  framework, logging
Gollum
An n:m message multiplexer written in Go
Stars: ✭ 883 (+2843.33%)
Mutual labels:  logging, log
Log4rs
A highly configurable logging framework for Rust
Stars: ✭ 483 (+1510%)
Mutual labels:  logging, log
Androidutilcode
AndroidUtilCode 🔥 is a powerful & easy to use library for Android. This library encapsulates the functions that commonly used in Android development which have complete demo and unit test. By using it's encapsulated APIs, you can greatly improve the development efficiency. The program mainly consists of two modules which is utilcode, which is commonly used in development, and subutil which is rarely used in development, but the utils can be beneficial to simplify the main module. 🔥
Stars: ✭ 30,239 (+100696.67%)
Mutual labels:  log, app
Izumi
Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
Stars: ✭ 423 (+1310%)
Mutual labels:  framework, logging
Electron Log
Just a simple logging module for your Electron application
Stars: ✭ 765 (+2450%)
Mutual labels:  logging, log
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+12463.33%)
Mutual labels:  logging, log
Cutelog
GUI for logging
Stars: ✭ 386 (+1186.67%)
Mutual labels:  logging, log
Hzdtf.foundation.framework
基础框架系统,支持.NET和.NET Core平台,语言:C#,DB支持MySql和SqlServer,主要功能有抽象持久化、服务层,将业务基本的增删改查抽离复用;提供代码生成器从DB生成实体、持久化、服务以及MVC控制器,每层依赖接口,并需要在客户端将对应实现层用Autofac程序集依赖注入,用AOP提供日志跟踪、事务、模型验证等。对Autofac、Redis、RabbitMQ封装扩展;DB访问提供自动主从访问,Redis客户端分区。特别适合管理系统。
Stars: ✭ 22 (-26.67%)
Mutual labels:  framework, log
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+23726.67%)
Mutual labels:  framework, app

DotLog

Simple and easy go log micro framework

1. Install

go get -u github.com/devfeel/dotlog

2. Getting Started

func main() {
	//请确保log.conf与你的执行文件同目录
	dotlog.StartLogService("log.conf")
	log1 := dotlog.GetLogger("FileLogger")
	log1.Info("example-normal test main")
	log1.InfoS("example-normal", true, time.Now(), "other info")
	log1.InfoF("example %v", time.Now)
	for {
		time.Sleep(time.Hour)
	}
}

log.conf

<?xml version="1.0" encoding="utf-8" ?>
<config>
  <!-- 日志组件全局配置 -->
  <global islog="True" innerlogpath="./" innerlogencode="gb2312"/>

  <!-- 日志组件用户自定义变量 -->
  <variable>
    <var name="LogDir" value="./"/>
    <var name="LogDateDir" value="./{year}/{month}/{day}/"/>
    <var name="MailServer" value="smtp.xxxx.cn"/>
    <var name="ToMail" value="xxxx"/>
    <var name="MailAccount" value="[email protected]"/>
    <var name="MailPassword" value="xxxx"/>
    <var name="SysName" value="Devfeel.DotLog"/>
  </variable>

  <!-- 日志组件日志记录媒体 -->
  <targets>
  </targets>

  <!-- 日志对象 -->
  <loggers>
    <logger name="ClassicsLogger" configmode="classics" layout="{DateTime} - {message}" />
    <logger name="FileLogger" configmode="file" layout="{DateTime} - {message}" />
 </loggers>

</config>

3. Features

  • 简单易用,100%配置化
  • 支持File、UDP、Http、EMail、StdOut五种日志目标
  • 支持配置模板:ConfigMode_Classics、ConfigMode_File、ConfigMode_Fmt、ConfigMode_FileFmt
  • 支持自定义变量
  • 文件支持单文件最大尺寸设置
  • 更多待完善
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].