Commit Graph

2 Commits (d977a011b399170c448de9548bd23fec65488610)

Author SHA1 Message Date
Matan Nassau 6c30da1591 fix broken examples in run from arbitrary dirs
examples work fine when run from example/, as in

 $ cd example/
 $ ./example

but otherwise break:

 $ cd
 $ ~/path/to/spdlog/example/bench

the above would fail on trying to open the logs/somefile for writing if
the logs directory doesn't exist in the current directory.

let's not assume there is a logs/ directory and just write our logs in
the current directory. we can suffix the logs with .log so they're easy
to find in .gitignore for cleanup.

and with that, we don't need the logs direcory, or the .gitignore inside
it that keeps it hanging.
11 years ago
gabime 4189a406f4 git ignore 12 years ago