Multiple Improvements in this release.
- Client can now be used in 3 modes (slogger can be enabled in all modes so that logs are also printed to stdout)
- Slogger Only - Simplest to use, logs to stdout only, can be used for logging to a file as well but does not send anything to the server
- Embedded server - the client can start the server side functionality and can start logging to the database without having to run the bark server separately.
- Remote server - the client can connect to a remote server and send the logs by using API calls.
- Client can now have the Debug level messages disabled
- Client can now wait for all log messages to be sent before quitting the program (by using the
Config.WaitAndEnd
function. - Alert level calls now support a webhook. When configured, the set webhook function can be called either synchronously (blocking) or asynchronously (non-blocking) to send the log to a remote alerting mechanism.
- Client can now allow you to send a raw log entry to the server side where all fields are manually set by the user.
Docker
Docker images are available on Docker Hub: https://hub.docker.com/repository/docker/techrail/bark/tags . You can pull the image using docker pull techrail/bark:1.1.0
to run them on your machine.
You would have to specify the BARK_DATABASE_URL
pointing to the PostgreSQL database for remote server use case.