Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: github.com/cihub/seelog
Package seelog implements logging functionality with flexible dispatching, filtering, and formatting.
To create a logger, use one of the following constructors:
Example:
The "defer" line is important because if you are using asynchronous logger behavior, without this line you may end up losing some
messages when you close your application because they are processed in another non-blocking goroutine. To avoid that you
explicitly defer flushing all messages before closing.
Logger created using one of the LoggerFrom* funcs can be used directly by calling one of the main log funcs.
Example:
Having loggers as variables is convenient if you are writing your own package with internal logging or if you have
several loggers with different options.
But for most standalone apps it is more convenient to use package level funcs and vars. There is a package level
var 'Current' made for it. You can replace it with another logger using 'ReplaceLogger' and then use package level funcs:
Last lines
do the same as
In this example the 'Current' logger was replaced using a 'ReplaceLogger' call and became equal to 'logger' variable created from config.
This way you are able to use package level funcs instead of passing the logger variable.
Main seelog point is to configure logger via config files and not the code.
The configuration is read by LoggerFrom* funcs. These funcs read xml configuration from different sources and try
to create a logger using it.
All the configuration features are covered in detail in the official wiki: https://github.com/cihub/seelog/wiki.
There are many sections covering different aspects of seelog, but the most important for understanding configs are:
After you understand these concepts, check the 'Reference' section on the main wiki page to get the up-to-date
list of dispatchers, receivers, formats, and logger types.
Here is an example config with all these features:
This config represents a logger with adaptive timeout between log messages (check logger types reference) which
logs to console, all.log, and errors.log depending on the log level. Its output formats also depend on log level. This logger will only
use log level 'debug' and higher (minlevel is set) for all files with names that don't start with 'test'. For files starting with 'test'
this logger prohibits all levels below 'error'.
Although configuration using code is not recommended, it is sometimes needed and it is possible to do with seelog. Basically, what
you need to do to get started is to create constraints, exceptions and a dispatcher tree (same as with config). Most of the New*
functions in this package are used to provide such capabilities.
Here is an example of configuration in code, that demonstrates an async loop logger that logs to a simple split dispatcher with
a console receiver using a specified format and is filtered using a top-level min-max constraints and one expection for
the 'main.go' file. So, this is basically a demonstration of configuration of most of the features:
To learn seelog features faster you should check the examples package: https://github.com/cihub/seelog-examples
It contains many example configs and usecases.
4 versions
Latest release: over 7 years ago
615 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/cihub/seelog
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/cihub%2Fseelog
Dependent Repos 1,759
krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.- v0.0.0-20170130134532-f561c5e57575 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
- v0.0.0-20170130134532-f561c5e57575 development/kyma-ci-force-bot/ciforcebot/go.sum
- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
slachiewicz/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 466 MB - Last synced: 10 days ago - Pushed: 11 days ago
sknot-rh/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 442 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
tts-tblock/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 449 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
boostchicken/opentelemetry-collector-contrib Fork of open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry Collector- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.mod
- v0.0.0-20151216151435-d2c6e5aa9fbf cmd/configschema/go.sum
- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.sum
- v0.0.0-20151216151435-d2c6e5aa9fbf cmd/otelcontribcol/go.sum
- v0.0.0-20170130134532-f561c5e57575 cmd/otelcontribcol/go.sum
- v0.0.0-20170130134532-f561c5e57575 cmd/otelcontribcol/go.mod
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.mod
- v0.0.0-20151216151435-d2c6e5aa9fbf exporter/datadogexporter/go.sum
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.sum
- v0.0.0-20170130134532-f561c5e57575 go.mod
- v0.0.0-20151216151435-d2c6e5aa9fbf go.sum
- v0.0.0-20170130134532-f561c5e57575 go.sum
- v0.0.0-20170130134532-f561c5e57575 processor/datadogprocessor/go.mod
- v0.0.0-20170130134532-f561c5e57575 processor/datadogprocessor/go.sum
- v0.0.0-20170130134532-f561c5e57575 testbed/go.sum
- v0.0.0-20170130134532-f561c5e57575 testbed/mockdatasenders/mockdatadogagentexporter/go.sum
Size: 262 MB - Last synced: 12 days ago - Pushed: 6 months ago
chienhanlin/amazon-ecs-agent Fork of aws/amazon-ecs-agent
Amazon Elastic Container Service Agent- v0.0.0-20170130134532-f561c5e57575 agent/go.mod
- v0.0.0-20170130134532-f561c5e57575 agent/go.sum
Size: 66.1 MB - Last synced: 2 months ago - Pushed: 3 months ago
slinkydeveloper/eventing-kafka-broker Fork of knative-sandbox/eventing-kafka-broker
Experimental Kafka Broker implementation- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 17.4 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
coopstah13/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 446 MB - Last synced: 9 months ago - Pushed: about 1 year ago
PushkarJ/enhancements Fork of kubernetes/enhancements
Enhancements tracking repo for Kubernetes- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 25.7 MB - Last synced: 9 months ago - Pushed: over 1 year ago
joshiste/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 449 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
thefreakingmind/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 445 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
geoand/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 447 MB - Last synced: 8 months ago - Pushed: about 1 year ago
cognitedata/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 444 MB - Last synced: 29 days ago - Pushed: 6 months ago
kameshsampath/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift 3- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 444 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
wwjiang007/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift 3- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 462 MB - Last synced: about 1 month ago - Pushed: 7 months ago
walnut-tom/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-triggers/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 450 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
Dohbedoh/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShift- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/camel-k/generator-v1alpha1/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/knative/generator/go.sum
- v0.0.0-20170130134532-f561c5e57575 extensions/tekton/generator-v1beta1/go.sum
Size: 456 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
chrishenzie/enhancements Fork of kubernetes/enhancements
Enhancements tracking repo for Kubernetes- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 29.1 MB - Last synced: 14 days ago - Pushed: 6 months ago
coralogix/opentelemetry-collector-contrib Fork of open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry Collector- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.mod
- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.sum
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.mod
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.sum
- v0.0.0-20170130134532-f561c5e57575 go.mod
- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 367 MB - Last synced: 7 days ago - Pushed: 8 days ago
kubermatic/telemetry-client
Telemetry-Client is an observability tool that can be used to track Kubermatic Kubernetes Platform and Kubernetes cluster usage.- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 280 KB - Last synced: 6 days ago - Pushed: 6 days ago
openshift/release-controller
The release controller assembles OpenShift releases from CI inputs- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 47.7 MB - Last synced: 4 days ago - Pushed: 4 days ago
aws/shim-loggers-for-containerd
Shim logger repository for streaming container logs when using Containerd- v0.0.0-20170130134532-f561c5e57575 go.mod
- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 594 KB - Last synced: about 17 hours ago - Pushed: about 18 hours ago
opsramp/opentelemetry-collector-contrib Fork of open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry Collector- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.mod
- v0.0.0-20170130134532-f561c5e57575 cmd/configschema/go.sum
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.mod
- v0.0.0-20170130134532-f561c5e57575 exporter/datadogexporter/go.sum
- v0.0.0-20170130134532-f561c5e57575 go.mod
- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 356 MB - Last synced: 8 days ago - Pushed: 8 days ago
sterchelen/kops Fork of kubernetes/kops
Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management- v0.0.0-20170130134532-f561c5e57575 tests/e2e/go.sum
Size: 301 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
ritazh/enhancements Fork of kubernetes/enhancements
Enhancements tracking repo for Kubernetes- v0.0.0-20170130134532-f561c5e57575 go.sum
Size: 27.3 MB - Last synced: 7 months ago - Pushed: 7 months ago
abayer/plumbing Fork of tektoncd/plumbing
This repo holds configuration for infrastructure used across the tektoncd org 🏗️- v0.0.0-20170130134532-f561c5e57575 catlin/go.sum
Size: 3.1 MB - Last synced: about 1 year ago - Pushed: over 1 year ago