reflect the mapnik.logger types in python

This commit is contained in:
Dane Springmeyer 2012-04-13 17:52:13 -07:00
parent 5767c65470
commit d5c09b6008

View file

@ -23,6 +23,7 @@
#include <boost/python.hpp>
#include <mapnik/debug.hpp>
#include <mapnik/utils.hpp>
#include "mapnik_enumeration.hpp"
void export_logger()
{
@ -37,6 +38,15 @@ void export_logger()
.staticmethod("instance")
;
enum_<mapnik::logger::severity_type>("severity_type")
.value("Info", logger::info)
.value("Debug", logger::debug)
.value("Warn", logger::warn)
.value("Error", logger::error)
.value("Fatal", logger::fatal)
.value("None", logger::none)
;
class_<logger,bases<singleton<logger,CreateStatic> >,
boost::noncopyable>("logger",no_init)
.def_readonly("Info", logger::info)