reflect the mapnik.logger types in python
This commit is contained in:
parent
5767c65470
commit
d5c09b6008
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue