{"repo":"keakon/golog","free":true,"listed":false,"github":"https://github.com/keakon/golog","clone":"git clone https://github.com/keakon/golog.git","description":"Super fast, unstructured logging in Go.","language":"Go","stars":39,"topics":["golang","logging","golog","go","log"],"license":"MIT","category":"analytics","readme_excerpt":"golog Features 1. Unstructured 2. Leveled 3. With caller (file path / name and line number) 4. Customizable output format 5. Rotating by size, date or hour 6. Cross platform, tested on Linux, macOS and Windows 7. No 3rd party dependency 8. Fast 9. Thread safe when logger configuration is completed before concurrent logging starts Installation Examples Logging to console Logging to file Rotating Formatting Check document for more format directives. Fast timer The fast timer is about 30% faster than calling time.Now() for each logging record. It is race-safe, with these timing characteristics: 1. The timer updates every 1 second, so the logging time can be at most 1 second behind the real time. 2. Concurrent readers may observe adjacent snapshots within a few milliseconds of an update, so concurrent logging messages can temporarily differ by 1 second. eg: ConcurrentFileWriter (experimental) The ConcurrentFileWriter is designed for high concurrency applications. It is about 140% faster than BufferedFileWriter at 6C12H by reducing the lock overhead, but a little slower at single thread. Note : The order of logging records from different cpu cores within each 0.1 second is random. Notes Logger.Close , Handler.Close , BufferedFileWriter.Close , and ConcurrentFileWriter.Close are idempotent. Writing to a closed file writer returns os.ErrClosed . ConsoleWriter.Close and DiscardWriter.Close are no-op operations because they do not own an operating-system resource that should be closed","default_branch":null,"files":null,"tree":[],"storefront":"/r/keakon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keakon/golog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}