Examples#
You can run the examples by running zig build -Dexample=<example> run where <example> is one
of:
defaults- demonstrates no-config behavior.custom_log_file- demonstrates custom log file name behavior.custom_storage_path- demonstrates custom storage path behavior.custom_storage_path_and_log_file- demonstrates custom storage path and log file name behavior.
Running examples in release mode#
The command above will run the examples in Debug mode. You can also run them in Release mode
with zig build -Doptimize=<example> -Doptimize=ReleaseFast run.
IMPORTANT
When in release mode the defaults and custom_log_file examples will store logs in
~/.local/state/logs/example.log and ~/.local/state/logs/custom-file.log respectively.