log

Colorful CLI logger

OTHER License

Stars
54

Bot releases are hidden (Show)

log - v0.4.6 Latest Release

Published by caarlos0 3 months ago

Changelog

Other work

  • 06d70bcb12eea57ffa7971bc77e6c9f96824db3f: ci: update goreleaser conf (@caarlos0)

Released with GoReleaser Pro!

log - v0.4.4

Published by caarlos0 about 1 year ago

Changelog


Released with GoReleaser Pro!

log - v0.1.0

Published by caarlos0 over 2 years ago

Changelog

New Features

  • 1e82932ac7fd3c79904610cb18e42cd696a19540: feat: bump deps (@caarlos0)
  • 007a44e7efded6aa0a86dc762707d120d97beb76: feat: deps (@caarlos0)
  • eca677828da8479510b319e89058ad0496065fa0: feat: make cli the default (@caarlos0)
  • 975e6cd09b7b5c819a722bf92ca439944da89ca1: feat: next termenv/lipgloss (@caarlos0)
  • 1f324af67dab79a8d0e40424a644c1a753ac828f: feat: padding (@caarlos0)
  • d8a09f52b8a60e53b2aac770a240debc23c4f194: feat: remove assets folder (@caarlos0)
  • fe918845bdceae65f18848a3fdba9f6a94df2033: feat: remove examples (@caarlos0)
  • cbd44fa12ce08b8c317c3aef7a863418ff1caadf: feat: remove stack trace support (@caarlos0)
  • 93aeeb691956b6a2db492e3464209a8b7c71a28e: feat: remove stack trace support (@caarlos0)
  • 7105861637711900b164fedccf5514c81f687dc3: feat: remove the withduration stuff (@caarlos0)
  • f251a94e478107049e919884778cb55aa572dbda: feat: remove trace (@caarlos0)
  • cceb6126d3a5debe397891a44904019666092fa7: feat: remove/refactor handlers (@caarlos0)
  • 3055e5e2a90e7fe3886087a60d07266d51d6baa0: feat: workflow (@caarlos0)
  • 799bd835636cbbf990ec902b14ba1afdcdf021a3: feat: workflows (@caarlos0)
  • 72651fcda61bf2ab8b7b287eefae5a0258971673: feat: workflows (@caarlos0)

Bug fixes

  • 9b7c6ac41a9aba7169c2bccfc3a0c79fb8233de4: fix: decrease padding (@caarlos0)
  • 7e234ab8bd314fde73121f0aa477ec5756af0351: fix: fmt (@caarlos0)
  • 82fade4d2f6553accb6e4461ebaab200f8e46bb7: fix: improve paddings (@caarlos0)
  • 15170bb29a6d98f11e3a625a4b1468c7122e0add: fix: linting issues (@caarlos0)
  • bbc352b26623b6ec8c0421842cba3ed00d0249fc: fix: padding (@caarlos0)
  • 2fbf855a357b5c9f5416ae0d1e672e579d23233e: fix: remove old default (@caarlos0)
  • ce6b7f0b3e077e2868c61793f7def21f9596f8b1: fix: rm json stuff (@caarlos0)
  • 6cf69ae5908c9e159c74f848893c47fa3282b3c6: fix: rm makefile (@caarlos0)
  • a19845dc06771dd252fe0580cb75e5fa43c7de49: fix: simplify code (@caarlos0)
  • 86075e2be894b049fe1f2f813fd64f5072945bd1: fix: windows tests (@caarlos0)
  • b6a87c399b67f32d0f9878c9137eb7a89dd26015: fix: windows tests (@caarlos0)

Other work

  • e27d2bfb00b423fee63b7767c35198a3f88724e5: Add HandlerFunc adapter for Handler interface (@f2prateek)
  • 55b535718b57c8e3559c61ef29127eeacca81b0c: Add github actions workflows (@wesleimp)
  • 6e8511568ba230d65d2d3933c20e698140806a34: Add graylog handler (@dobegor)
  • 856283b7e9908ae305206b015e264b5df050b3c5: Add handling for parsing levels that are not input in all lowercase. (@DavidTPate)
  • d1cd28bae5c4ede2cd78119e562f9675b3a4e597: Change trace duration to milliseconds (@wesleimp)
  • 51632129bde59f1839d468b585354081ad33471a: Default handler outputs to stdlib log (@oelshocht)
  • ea6223556545a97f21510dcf3e8590418be97c45: Fix for fields getting corrupt (@francoishill)
  • 8d83d899bde4f09538844f89a00ac4e571d0d61e: Fix typo (@oelshocht)
  • dc74ce543c565c6e19d937104085153813dabe25: Ignore nil errors in WithError (@wesleimp)
  • 295021f518f737dd0bfdca2c98136517703196b9: Release v1.1.1 (@tj)
  • bef999bc8ce84263a325aa203f73b616fbf59ef4: Release v1.1.2 (@tj)
  • e0016704fa2093edca9f89dd3d763bb38b580d16: Release v1.1.3 (@tj)
  • 1d5d21c2aff8d7ca828bc2c31b3b34903fb1c939: Release v1.1.4 (@tj)
  • 35888a9152ba2ddfd37f872745a6f775d09a3dc3: Release v1.2.0 (@tj)
  • 95b9d5c261316c3bda715c910c9eaba246042885: Release v1.3.0 (@tj)
  • ae82e04fb22eb8dbab653104159854aa2110ef5c: Release v1.4.0 (@tj)
  • 6cb6a8f200e4cc255bfe721cb2f388f4d3bef6ff: Release v1.5.0 (@tj)
  • 96da3d300e0e131cedd19b91abdcdc4611f8f33d: Release v1.6.0 (@tj)
  • 4e3318eb72eb25e11532a75a5745922644941451: Release v1.7.0 (@tj)
  • 09aadf71bbe227cb2f900f21b58a8faf1e0827d7: Release v1.7.1 (@tj)
  • 1ac64716c6260fae6df8856b1c268924a9f57e3a: Release v1.8.0 (@tj)
  • 3edb93e9f62c13dccdbf0759bd9da5b71dc60926: Release v1.9.0 (@tj)
  • 8bba8962973b8c2914f9c6f999db342d9feaa863: Revert "add Field.WithCaller() to add line and filename fields. Closes #3" (@tj)
  • 31cdc14eeb848d97017811c11b8cc7d9c39e4728: Revert "move delta to after the fields" (@tj)
  • 9d14151d1c1f83fd62ee8cab439210133be7c3c7: Test on all supported versions of go (@abenerd)
  • bbcce6279c0da13f2acbc474f189fa9b841c2c07: Update LICENSE (@aviau)
  • 95598637d5de94c16bc16dea557634d829db40f0: Update Readme.md (@caarlos0)
  • 8555bd50936ac5c0fe30d188f6e665c143a6bb14: Update Readme.md (@tj)
  • 4ea85e918cc8389903d5f12d7ccac5c23ab7d89b: Update Readme.md (@tj)
  • 3a286a68b4dc2da2a4e2cd181b19c92df1ce1674: Update min required go version (@abenerd)
  • c6d0f24fc8452234145ca56dd4b68153e5c3304b: add AuthToken to apexlogs handler (@tj)
  • 30da4f465bbdce536cf5187df077e7f1cee4130c: add CI / godoc badges (@tj)
  • ce5daa2386fac7e10a712d9923fa1d5b7287d626: add Entry.clone() to improve perf (@tj)
  • dad0981985153738e5a6bbd02a916511d24429a0: add Entry.finalize() test (@tj)
  • 77bf487156602642da75181e9e0045a6376b4a60: add ErrInvalidLevel (@tj)
  • baa5455d10123171ef1951381610c51ad618542a: add FUNDING.yml (@tj)
  • a81680d496a62a6f75b8f654f72901d6b2d25fc7: add Field.WithCaller() to add line and filename fields. Closes #3 (@tj)
  • 586e47aa83ba4c4778a0d7b940356332fe890448: add FlushSync() to apexlogs handler (@tj)
  • d6c5facec1f2ae23a97782ab0ee18af58734346f: add History.md (@tj)
  • d9b960447bfa720077b2da653cc79e533455b499: add InvalidLevel (@tj)
  • e51b880d78339fb4d77db0568c41d4bad2a71c23: add Kinesis handler. Closes #1 (@tj)
  • a43e30f42fc328f930c3d4d3fff0764fb9f7d395: add Level.MarshalJSON() (@tj)
  • 0bae5dcd7293b9691f032ca482d48ee5431bfe89: add Level.UnmarshalJSON() (@tj)
  • 53fbe1367d8896061c23be4dce551434e6cf8901: add Log to expose singleton (@tj)
  • fac6c51185bc6fb3404cd4f105bb3c813553e5dd: add MustParseLevel() (@tj)
  • 8f3a15d95392c8fc202d1e1059f46df21dff2992: add SetLevelFromString() (@tj)
  • f99f34baaf8267f2d43edb435c1ec104d6bb01b5: add WithDuration() method (@tj)
  • a54f977f0c573b5051c36d75ac1d97a172dcf05c: add apexlogs HTTPClient support (@tj)
  • 46149acbf446ab7ac42e84ccd38f0ebb1d031388: add basic Elasticsearch handler (@tj)
  • 777809fc64bafeb1f6dd0570c9b66b378e6698f9: add better about section (@tj)
  • 928252835766441296ca0b57f65c8d0c08ef8386: add buffering to Apex Logs handler (@tj)
  • 4c6affc73f87b2b5b7a6e6af871184832c9fbf61: add cli Padding field (@tj)
  • c684f3ae0a503d908f409f274f6769abe6feada7: add cli handler (@tj)
  • 07bdde05c10004dcafc22d9e442318e207db988f: add default handler example (@tj)
  • 78d4551cbed00680259ffabb665a00f8a1dc6eb4: add delta handler (@tj)
  • bfe8c3f75160263d68ffb475967625078d7de689: add discard.Default (@tj)
  • 3339a4318c4c299d3ba827771266d1a4529be903: add docs (@matthewmueller)
  • 68dfb102958d3a15c32c2646f43fd48d6117b6d9: add duration field to Entry.Stop() logs (@tj)
  • 603945f16991551ab5a7a91dddcac834eed40220: add embedding of json.Encoder for access to SetIndent() etc (@tj)
  • 56b598dd62b8b727bde7fe74a904c052c872bf88: add es.Config.Format support (@)
  • a693cbdc9057613c12b7a47a36d22d101330e30f: add events len check before flushing to apexlogs handler (@tj)
  • ccb1639e1997459fb7fddd4ecf456049ddc76df0: add field sorting to text handler. Closes #4 (@tj)
  • 89ce6f11b2dc2a7603f3429d7b3076c526980841: add filename, line, and function when using pkg/errors. Closes #3 (@tj)
  • d5bb8069d993d48d67f6135bc662bdffb664c8e0: add go.mod (@tj)
  • 77d8f9c0f26ad5fe007ec133d43f4eac64f0c0f0: add ignoring of "source" field for cli handler (@tj)
  • 1c07a9cf91bf91ce6d2cecc293becdf4854e5d96: add json tests (@tj)
  • f9fa9c27721983207c371b743290c098611f316b: add level handler (@tj)
  • d1c73f693f4d849321c861234b02646a1f7d8ac0: add level handler tests (@tj)
  • cc8db835f4f1517230620896cd6c0d7bc3be736d: add list of handlers (@tj)
  • fae9d9fbcd95c366ae04502de577173f8dce5d12: add lock to Memory handler (@tj)
  • b377d25c3af4a081f8b979c1fc6faeb501d55aec: add log.NewContext() and log.FromContext(). Closes #78 (@tj)
  • 9cb308ff6e7bec380c75a40b23dcccb2eb1a67de: add logfmt benchmark (@tj)
  • b02e3be4bcfc4c8113f0912d3cf5e26ba2322553: add logfmt tests (@tj)
  • 81c3c91f9e7dc6fe623b681ea2785705f1213f40: add missing "go" for es flushes (@tj)
  • 17e941aeaa646c0f23d68ba154ca881ca4e76e40: add multi tests (@tj)
  • 02bedee0fb947b4e18503bc61190ba7498b21bc1: add nicer cli example (@tj)
  • e44238ae23e1deaa0da3ee61f9c1337852f45152: add papertrail handler (@tj)
  • 064e581013a583b8d4d55637507ba91b3a9f86bf: add rough pass at apexlogs handler (@tj)
  • c730a478ae456b73a94b443794cd1167b0482108: add sorting to logfmt. Closes #19 (@tj)
  • c20bfcdb771b706fdd57a954ee9da2d0ff97b02d: add support for nil to be passed to Stop (@flowonyx)
  • 54d950ac0431bf8a1e8c06fdcc233693df485997: add text tests (@tj)
  • 9f22b3339abcb3342c05b5b512830b13338c7bf1: add text.Default, logfmt.Default, and json.Default (@tj)
  • 3f37bee8a5f37249f16c6059cfea51617f41da87: add text.{Colors,Strings} and cli.{Colors,Strings} (@tj)
  • 27fb6332e08d90d25715a97447e24a2a0912afb5: add time delta to text handler (@tj)
  • bf54a9c88ad249d4e91144b5ffe7bd141c0945a8: add timestamp to logfmt. Closes #16 (@tj)
  • 994011249d68d2b3ca735641c1f03686c5c794de: add title.png (@tj)
  • 560a983048f4a827311b7f1ea6cf31168887a0af: add todos (@tj)
  • 8928bcff20080e0629ed8a7bfbb20101d2d6bc28: add trace example (@tj)
  • b1e79133760230411cd375d802bec4e87db20031: badge (@tj)
  • 7259ed75bd8d8113a7ac9831ecb0558cac33ceed: badge (@tj)
  • b17cdd37a8f03018e0cc1199259a7aa74e2f56a1: change FromContext() to always return a logger (@tj)
  • cdba3986502ab4bc66b4d584eff0ed2dac9b018b: change cli level symbols (@tj)
  • 0296d6eb16bb28f8a0c55668affcf4876dc269be: change delta to left-align (@tj)
  • afb2e76037a5f36542c77e88ef8aef9f469b09f8: change distinct frame fields to "source" (@tj)
  • 707788e1e5ea5a096df6955666faea417974e147: change pkg Log to be an Interface (@tj)
  • a4c544fbdce9cd40ba366e750f36f34d742f2645: cleanup (@caarlos0)
  • 57fa4e80b90763b5cecfc0843b65c463098f9a5e: cli: using fatih/color to better support windows (@caarlos0)
  • 81a19e5c0054c0c0e546333bfc4eed40b5b9592f: defer (@tj)
  • 4cc6e7eda4ed231c0399ee2937079df3bd58e7cd: docs (@tj)
  • 0530cf5911013ffb9756e67dc6d5e90d0f76542b: entry: support .Fields() on error types (@yields)
  • d83a24bca7715437c542f639a56803b9dedb6f67: fix Entry.Stop() for defer use-case (@tj)
  • 2e51804d39639155fbebbe1cdccd44ea14665805: fix Example_trace(), should not return anything (@tj)
  • 2dafa85a923ac3dc5b09beda3cf06395836898db: fix json tests in CI (@tj)
  • 38af4309a392f4e5cbc74b31a78697f806ba5073: fix logfmt tests in CI (@tj)
  • b099c4957b9c9ecb906018b0995d770c338ed007: fix potential nil panic in apexlogs handler (@tj)
  • 7bd718bbfa8bd6f1889534da4f6703d9fa810889: fix race from Entry manip. Closes #14 (@tj)
  • 9157cbdf36645dcfd7d2b7b687938e2e733f31ea: fix some of my comments (@tj)
  • f49497f64468dabe121ae2ae12ba3bc060e8c4e3: fix tests for duration change (@tj)
  • 6c04db17c5a78c2586b4565beacbcf5f545a0fb2: fix tests, need a mock for apexlogs (@tj)
  • 130b068f6205554a9b09c887813fa16e59772e95: fix typo in es package docs (@tj)
  • 61ecaf29aa819a2d3af1ec21f5e7fc213b5eef6c: handlers/cli: Show non-string fields appropriately (@patrickmn)
  • 478ba5cbfb016c88a1a24bf60a6064892bc05bae: improve badge game (@tj)
  • bb14657810e3b54d3dc7536d537f76419e8af1c3: improved (@caarlos0)
  • 94d4705a8dfaba9514c1ec2e1c3f02deefcffb58: move Entry.clone() lower (@tj)
  • 4411222cbb133c2cdae5ef35d8218cd23ea4cf54: move delta to after the fields (@tj)
  • 12c25728564fdba120cbf060d775cf2e495cca1f: refactor Entry printf style methods (@tj)
  • ae8aa5030551bd783ae9c82f281c50c2ec32ba4f: refactor Entry using slice of Fields to improve perf (@tj)
  • 409c0d671bb458203b80f5f403fd2f44079776d3: refactor Entry.Stop() using Entry.WithDuration() (@tj)
  • 97d7815d77a707125ef513a46a1cdd982d671218: refactor Kinesis example (@tj)
  • efb6ca6c2a0cef6fdd689e7a92a7b7b74b35cd2a: refactor ParseLevel tests (@tj)
  • d7367893c125a4248c46a4895004337020f2aac5: refactor ParseLevel() with map (@tj)
  • d6b7f1edde21caad3241486e14379e146e838c59: refactor apexlogs handler to not make the AddEvents() call if there are no events to flush (@tj)
  • 452a4d9de886309a58dc48c66b7d63c565cecfd6: refactor apexlogs handler to require authToken (@tj)
  • 6091ecc3bb7304f055b06a6fd1558d10d54bdbfa: refactor apexlogs handler to use github.com/apex/logs client (@tj)
  • a00529b7e23f9a79337e26400a58d34293c381ab: refactor apexlogs handler with Events() method (@tj)
  • ff0f66940b829dc66c81dad34746d4349b83eb9e: refactor cli.New() (@tj)
  • f0aad537c25ee2786481d82844ce23b32d99b52a: refactor field sorting (@tj)
  • 087239faff55655a9660511b26fcc3a343d13141: refactor makefile (@tj)
  • 29a16b1a3352e39e34a30efcc8e4768bd2820b48: refactor: tests (@caarlos0)
  • 5a2383ed90b6f9c0e5b6fb5c94df2c10e49578d3: update apex/logs dep to v1.0.0 (@tj)
  • 29fc76b07a8300e99669d022532ded1ee6542d56: use colorable *os.File (@wxio)

Released with GoReleaser Pro!