Added an Imager::log_entry() function and some extra logging
[imager.git] / Imager.xs
index 3de360f..f55390a 100644 (file)
--- a/Imager.xs
+++ b/Imager.xs
@@ -33,6 +33,13 @@ void my_SvREFCNT_dec(void *p) {
   SvREFCNT_dec((SV*)p);
 }
 
+
+void
+log_entry(char *string, int level) {
+  mm_log((level, string));
+}
+
+
 typedef struct i_reader_data_tag
 {
   /* presumably a CODE ref or name of a sub */
@@ -757,6 +764,12 @@ init_log(name,level)
              char*    name
               int     level
 
+void
+log_entry(string,level)
+             char*    string
+              int     level
+
+
 void
 i_img_exorcise(im)
     Imager::ImgRaw     im