Async logger is simple pkg to write logs to file or output to std asynchronously
Check the Makefile for more information.
Usage: make [target]
Targets:
build Compile binaries.
tests Run tests.
Check /configs for description and some examples.
To build application locally, just run:
make build
The binaries will be placed in /bin
.
To build application inside a Docker container, choose the Dockerfile
and run:
docker build -f ${Dockerfile} -t ${IMAGE_NAME} .
To build application with Docker Compose (with required services like database and etc.), run:
docker compose -f docker-compose.yml up --build
To run only unit tests simply run:
make test
To run app you should export env CONFIG_FILE
:
export CONFIG_FILE=./configs/config.yaml
And run app with args:
./bin/alog_test 3 50
In this example we run 3 threads and write 50 messages in each thread.