| Revision: | 1.2 |
| Committed: | Mon Oct 18 14:11:46 2010 UTC (16 years ago) by sf-pippijn |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.1: | +0 -0 lines |
| State: | FILE REMOVED |
| Log Message: | check and log but do not die when ncurses stuff fails |
| # | 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); |