| Revision: | 1.1 |
| Committed: | Sun Oct 17 08:15:00 2010 UTC (16 years ago) by sf-pippijn |
| Branch: | MAIN |
| Log Message: | initial import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | sf-pippijn | 1.1 | #include "deliantra/logs.h" |
| 2 | |||
| 3 | #include <fstream> | ||
| 4 | |||
| 5 | static std::ofstream logstream ("deliantra.log"); | ||
| 6 | |||
| 7 | static std::ostream & | ||
| 8 | unbuffered (std::ostream &os) | ||
| 9 | { | ||
| 10 | os.setf (std::ios_base::unitbuf); | ||
| 11 | return os; | ||
| 12 | } | ||
| 13 | |||
| 14 | std::ostream &logs = unbuffered (logstream); |