├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── benchmark_test.go ├── context.go ├── context_test.go ├── ctx.go ├── ctx_test.go ├── entry.go ├── entry_test.go ├── field.go ├── field_test.go ├── fields.go ├── fields_test.go ├── formatter.go ├── formatter ├── benchmark_test.go ├── default.go ├── default_test.go ├── gelf.go ├── gelf_test.go ├── json.go ├── json_test.go ├── line.go └── line_test.go ├── formatter_test.go ├── go.mod ├── go.sum ├── handler.go ├── handler ├── benchmark_test.go ├── chan.go ├── chan_test.go ├── gelf.go ├── gelf_test.go ├── group.go ├── group_test.go ├── memory.go ├── memory_test.go ├── rotate.go ├── rotate_test.go ├── socket.go ├── socket_test.go ├── stream.go ├── stream_test.go ├── syslog.go └── syslog_test.go ├── handler_test.go ├── level.go ├── level_test.go ├── logger.go ├── logger_test.go ├── logo.png ├── middleware.go ├── middleware ├── benchmark_test.go ├── caller.go ├── caller_test.go ├── context.go ├── context_test.go ├── error.go ├── error_test.go ├── filter.go ├── filter_test.go ├── placeholder.go ├── placeholder_test.go ├── recover.go ├── recover_test.go ├── timestamp.go └── timestamp_test.go ├── middleware_test.go ├── mocks ├── ErrorHandler.go ├── FormatterInterface.go ├── LogInterface.go ├── LoggerInterface.go ├── RotateWriter.go ├── WrappableLoggerInterface.go └── Writer.go ├── socket └── socket.go ├── testing ├── error_handler.go ├── error_handler_test.go ├── logger.go └── logger_test.go └── writer ├── compress.go ├── compress_test.go ├── gelf_chunked.go ├── gelf_chunked_test.go ├── provider.go ├── provider ├── compress.go ├── compress_test.go ├── log.go ├── log_test.go ├── time.go └── time_test.go ├── rotate.go ├── rotate_io_writer.go ├── rotate_io_writer_test.go ├── time_rotate.go └── time_rotate_test.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/README.md -------------------------------------------------------------------------------- /benchmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/benchmark_test.go -------------------------------------------------------------------------------- /context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/context.go -------------------------------------------------------------------------------- /context_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/context_test.go -------------------------------------------------------------------------------- /ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/ctx.go -------------------------------------------------------------------------------- /ctx_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/ctx_test.go -------------------------------------------------------------------------------- /entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/entry.go -------------------------------------------------------------------------------- /entry_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/entry_test.go -------------------------------------------------------------------------------- /field.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/field.go -------------------------------------------------------------------------------- /field_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/field_test.go -------------------------------------------------------------------------------- /fields.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/fields.go -------------------------------------------------------------------------------- /fields_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/fields_test.go -------------------------------------------------------------------------------- /formatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter.go -------------------------------------------------------------------------------- /formatter/benchmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/benchmark_test.go -------------------------------------------------------------------------------- /formatter/default.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/default.go -------------------------------------------------------------------------------- /formatter/default_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/default_test.go -------------------------------------------------------------------------------- /formatter/gelf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/gelf.go -------------------------------------------------------------------------------- /formatter/gelf_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/gelf_test.go -------------------------------------------------------------------------------- /formatter/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/json.go -------------------------------------------------------------------------------- /formatter/json_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/json_test.go -------------------------------------------------------------------------------- /formatter/line.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/line.go -------------------------------------------------------------------------------- /formatter/line_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter/line_test.go -------------------------------------------------------------------------------- /formatter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/formatter_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/go.sum -------------------------------------------------------------------------------- /handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler.go -------------------------------------------------------------------------------- /handler/benchmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/benchmark_test.go -------------------------------------------------------------------------------- /handler/chan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/chan.go -------------------------------------------------------------------------------- /handler/chan_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/chan_test.go -------------------------------------------------------------------------------- /handler/gelf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/gelf.go -------------------------------------------------------------------------------- /handler/gelf_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/gelf_test.go -------------------------------------------------------------------------------- /handler/group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/group.go -------------------------------------------------------------------------------- /handler/group_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/group_test.go -------------------------------------------------------------------------------- /handler/memory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/memory.go -------------------------------------------------------------------------------- /handler/memory_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/memory_test.go -------------------------------------------------------------------------------- /handler/rotate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/rotate.go -------------------------------------------------------------------------------- /handler/rotate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/rotate_test.go -------------------------------------------------------------------------------- /handler/socket.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/socket.go -------------------------------------------------------------------------------- /handler/socket_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/socket_test.go -------------------------------------------------------------------------------- /handler/stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/stream.go -------------------------------------------------------------------------------- /handler/stream_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/stream_test.go -------------------------------------------------------------------------------- /handler/syslog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/syslog.go -------------------------------------------------------------------------------- /handler/syslog_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler/syslog_test.go -------------------------------------------------------------------------------- /handler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/handler_test.go -------------------------------------------------------------------------------- /level.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/level.go -------------------------------------------------------------------------------- /level_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/level_test.go -------------------------------------------------------------------------------- /logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/logger.go -------------------------------------------------------------------------------- /logger_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/logger_test.go -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/logo.png -------------------------------------------------------------------------------- /middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware.go -------------------------------------------------------------------------------- /middleware/benchmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/benchmark_test.go -------------------------------------------------------------------------------- /middleware/caller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/caller.go -------------------------------------------------------------------------------- /middleware/caller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/caller_test.go -------------------------------------------------------------------------------- /middleware/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/context.go -------------------------------------------------------------------------------- /middleware/context_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/context_test.go -------------------------------------------------------------------------------- /middleware/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/error.go -------------------------------------------------------------------------------- /middleware/error_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/error_test.go -------------------------------------------------------------------------------- /middleware/filter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/filter.go -------------------------------------------------------------------------------- /middleware/filter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/filter_test.go -------------------------------------------------------------------------------- /middleware/placeholder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/placeholder.go -------------------------------------------------------------------------------- /middleware/placeholder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/placeholder_test.go -------------------------------------------------------------------------------- /middleware/recover.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/recover.go -------------------------------------------------------------------------------- /middleware/recover_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/recover_test.go -------------------------------------------------------------------------------- /middleware/timestamp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/timestamp.go -------------------------------------------------------------------------------- /middleware/timestamp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware/timestamp_test.go -------------------------------------------------------------------------------- /middleware_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/middleware_test.go -------------------------------------------------------------------------------- /mocks/ErrorHandler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/ErrorHandler.go -------------------------------------------------------------------------------- /mocks/FormatterInterface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/FormatterInterface.go -------------------------------------------------------------------------------- /mocks/LogInterface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/LogInterface.go -------------------------------------------------------------------------------- /mocks/LoggerInterface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/LoggerInterface.go -------------------------------------------------------------------------------- /mocks/RotateWriter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/RotateWriter.go -------------------------------------------------------------------------------- /mocks/WrappableLoggerInterface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/WrappableLoggerInterface.go -------------------------------------------------------------------------------- /mocks/Writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/mocks/Writer.go -------------------------------------------------------------------------------- /socket/socket.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/socket/socket.go -------------------------------------------------------------------------------- /testing/error_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/testing/error_handler.go -------------------------------------------------------------------------------- /testing/error_handler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/testing/error_handler_test.go -------------------------------------------------------------------------------- /testing/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/testing/logger.go -------------------------------------------------------------------------------- /testing/logger_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/testing/logger_test.go -------------------------------------------------------------------------------- /writer/compress.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/compress.go -------------------------------------------------------------------------------- /writer/compress_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/compress_test.go -------------------------------------------------------------------------------- /writer/gelf_chunked.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/gelf_chunked.go -------------------------------------------------------------------------------- /writer/gelf_chunked_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/gelf_chunked_test.go -------------------------------------------------------------------------------- /writer/provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider.go -------------------------------------------------------------------------------- /writer/provider/compress.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/compress.go -------------------------------------------------------------------------------- /writer/provider/compress_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/compress_test.go -------------------------------------------------------------------------------- /writer/provider/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/log.go -------------------------------------------------------------------------------- /writer/provider/log_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/log_test.go -------------------------------------------------------------------------------- /writer/provider/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/time.go -------------------------------------------------------------------------------- /writer/provider/time_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/provider/time_test.go -------------------------------------------------------------------------------- /writer/rotate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/rotate.go -------------------------------------------------------------------------------- /writer/rotate_io_writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/rotate_io_writer.go -------------------------------------------------------------------------------- /writer/rotate_io_writer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/rotate_io_writer_test.go -------------------------------------------------------------------------------- /writer/time_rotate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/time_rotate.go -------------------------------------------------------------------------------- /writer/time_rotate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gol4ng/logger/HEAD/writer/time_rotate_test.go --------------------------------------------------------------------------------