All Projects → ianberdin → l

ianberdin / l

Licence: MIT license
Golang Pretty Logger

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to l

winston-dev-console
Winston@3 console format aimed to improve development UX
Stars: ✭ 88 (+72.55%)
Mutual labels:  logger, pretty
json-peek
Stringify JSON *just enough* to see what it is
Stars: ✭ 33 (-35.29%)
Mutual labels:  pretty
Mobx Logger
Log Mobx Actions, Reactions, Transactions and Computations
Stars: ✭ 210 (+311.76%)
Mutual labels:  logger
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+396.08%)
Mutual labels:  logger
Awesome Wanandroid
⚡致力于打造一款极致体验的 http://www.wanandroid.com/ 客户端,知识和美是可以并存的哦QAQn(*≧▽≦*)n
Stars: ✭ 2,525 (+4850.98%)
Mutual labels:  logger
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (-9.8%)
Mutual labels:  logger
Ring Log
Ring-Log是一个高效简洁的C++异步日志, 其特点是效率高(每秒支持至少125万+日志写入)、易拓展,尤其适用于频繁写日志的场景
Stars: ✭ 201 (+294.12%)
Mutual labels:  logger
Torch-Scope
A Toolkit for Training, Tracking, Saving Models and Syncing Results
Stars: ✭ 62 (+21.57%)
Mutual labels:  logger
DustViewerSharp
UART-USB based dust sensor viewer(and also logging) program by C#
Stars: ✭ 38 (-25.49%)
Mutual labels:  logger
Chipmunk
log analysis tool
Stars: ✭ 247 (+384.31%)
Mutual labels:  logger
Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+307.84%)
Mutual labels:  logger
Vuejs Logger
Provides customizable logging functionality for Vue.js. Compatible with Vue2.
Stars: ✭ 215 (+321.57%)
Mutual labels:  logger
QuickTraceiOSLogger
A real time iOS log trace tool, view iOS log with pc web browser under local area network, which will automatically scroll like xcode. 一个实时的iOS日志跟踪工具,在局域网中使用 PC Web 浏览器查看 iOS 日志,它将像xcode一样自动滚动。
Stars: ✭ 16 (-68.63%)
Mutual labels:  logger
Monolog Bundle
Symfony Monolog Bundle
Stars: ✭ 2,532 (+4864.71%)
Mutual labels:  logger
ng-logger
Angular logger service
Stars: ✭ 65 (+27.45%)
Mutual labels:  logger
Abap Logger
ABAP Logging as painless as any other language
Stars: ✭ 201 (+294.12%)
Mutual labels:  logger
Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (+343.14%)
Mutual labels:  logger
mini-async-log-c
Mini async log C port. Now with C++ wrappers.
Stars: ✭ 69 (+35.29%)
Mutual labels:  logger
WormholyForObjectiveC
Network debugging made easy,This network debugging tool is developed based on the swift version of Wormholy.
Stars: ✭ 21 (-58.82%)
Mutual labels:  logger
junit.testlogger
JUnit test logger for vstest platform
Stars: ✭ 61 (+19.61%)
Mutual labels:  logger

Golang Pretty Logger (Warning! Not Maintened.)

Custom go logger for pretty print, log, debug, warn, error with colours and levels.

Usage

Install

go get github.com/happierall/l

Usage

import "github.com/happierall/l"

func main() {
   l.Log(10 + 5)
   l.Print("Without datetime and code line")
   
   people := &People{"Name"}
   l.Debug(people)

   l.Warn("Function is depreceted")
   l.Error("User is not defined")
   l.Logf("%d ms", 10)
   l.Printf("Request %s ms", l.Colorize("53", l.Green))
}

type People struct {
    Name string
}

Terminal output: Output struct and int

Custom logger

var log = l.New()
log.Prefix = log.Colorize("[APP] ", l.Blue)
log.Level = l.LevelDebug // default
log.DisabledInfo = true  // without date and code line

log.Debug("Message without date and line with prefix")

Production mode

(without colors)

l.Default.Production = true

Subscribe on logs

l.Default.Subscribe(func(text string, lvl l.Level) {
	fmt.Println("New log", text, lvl.String())
})

Based on

y0ssar1an/q

License

MIT

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].