Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix logger

  • Loading branch information...
commit 5c38362dafc038ae6de6dbfe053a71f1d3ac1b9d 1 parent fdd35db
Matias Alejo Garcia authored
Showing with 24 additions and 15 deletions.
  1. +6 −10 Makefile
  2. +10 −4 lib/SQL/Bibliosoph.pm
  3. +8 −1 lib/SQL/Bibliosoph/Query.pm
View
16 Makefile
@@ -58,11 +58,11 @@ DIRFILESEP = /
DFSEP = $(DIRFILESEP)
NAME = SQL::Bibliosoph
NAME_SYM = SQL_Bibliosoph
-VERSION = 2.53
+VERSION = 2.55
VERSION_MACRO = VERSION
-VERSION_SYM = 2_53
+VERSION_SYM = 2_55
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
-XS_VERSION = 2.53
+XS_VERSION = 2.55
XS_VERSION_MACRO = XS_VERSION
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
INST_ARCHLIB = blib/arch
@@ -189,7 +189,6 @@ PERL_ARCHIVE_AFTER =
TO_INST_PM = lib/SQL/Bibliosoph.pm \
lib/SQL/Bibliosoph/.CatalogFile.pm.swo \
- lib/SQL/Bibliosoph/.Exceptions.pm.swo \
lib/SQL/Bibliosoph/.Query.pm.swo \
lib/SQL/Bibliosoph/CatalogFile.pm \
lib/SQL/Bibliosoph/Dummy.pm \
@@ -199,8 +198,6 @@ TO_INST_PM = lib/SQL/Bibliosoph.pm \
PM_TO_BLIB = lib/SQL/Bibliosoph/Query.pm \
blib/lib/SQL/Bibliosoph/Query.pm \
- lib/SQL/Bibliosoph/.Exceptions.pm.swo \
- blib/lib/SQL/Bibliosoph/.Exceptions.pm.swo \
lib/SQL/Bibliosoph/Exceptions.pm \
blib/lib/SQL/Bibliosoph/Exceptions.pm \
lib/SQL/Bibliosoph/Dummy.pm \
@@ -283,7 +280,7 @@ RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
DIST_CP = best
DIST_DEFAULT = tardist
DISTNAME = SQL-Bibliosoph
-DISTVNAME = SQL-Bibliosoph-2.53
+DISTVNAME = SQL-Bibliosoph-2.55
# --- MakeMaker macro section:
@@ -545,7 +542,7 @@ metafile : create_distdir
$(NOECHO) $(ECHO) ' Tie::Hash::Random: 1' >> META_new.yml
$(NOECHO) $(ECHO) ' Time::HiRes: 1.97' >> META_new.yml
$(NOECHO) $(ECHO) ' perl: 5.010000' >> META_new.yml
- $(NOECHO) $(ECHO) 'version: 2.53' >> META_new.yml
+ $(NOECHO) $(ECHO) 'version: 2.55' >> META_new.yml
-$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml
$(NOECHO) $(ECHO) Generating META.json
$(NOECHO) $(ECHO) '{' > META_new.json
@@ -602,7 +599,7 @@ metafile : create_distdir
$(NOECHO) $(ECHO) ' }' >> META_new.json
$(NOECHO) $(ECHO) ' },' >> META_new.json
$(NOECHO) $(ECHO) ' "release_status" : "stable",' >> META_new.json
- $(NOECHO) $(ECHO) ' "version" : "2.53"' >> META_new.json
+ $(NOECHO) $(ECHO) ' "version" : "2.55"' >> META_new.json
$(NOECHO) $(ECHO) '}' >> META_new.json
-$(NOECHO) $(MV) META_new.json $(DISTVNAME)/META.json
@@ -929,7 +926,6 @@ ppd :
pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM)
$(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \
lib/SQL/Bibliosoph/Query.pm blib/lib/SQL/Bibliosoph/Query.pm \
- lib/SQL/Bibliosoph/.Exceptions.pm.swo blib/lib/SQL/Bibliosoph/.Exceptions.pm.swo \
lib/SQL/Bibliosoph/Exceptions.pm blib/lib/SQL/Bibliosoph/Exceptions.pm \
lib/SQL/Bibliosoph/Dummy.pm blib/lib/SQL/Bibliosoph/Dummy.pm \
lib/SQL/Bibliosoph/.Query.pm.swo blib/lib/SQL/Bibliosoph/.Query.pm.swo \
View
14 lib/SQL/Bibliosoph.pm
@@ -5,12 +5,18 @@ package SQL::Bibliosoph; {
use Digest::MD5 qw/ md5_hex /;
use Cache::Memcached::Fast;
use Storable;
- use Log::Contextual qw(:log);
+ use Log::Contextual::WarnLogger;
+ use Log::Contextual qw(:log),
+ -default_logger => Log::Contextual::WarnLogger->new({
+ env_prefix => 'Bibliosoph'
+ });
+
+
use SQL::Bibliosoph::Query;
use SQL::Bibliosoph::CatalogFile;
- our $VERSION = "2.53";
+ our $VERSION = "2.55";
has 'dbh' => ( is => 'ro', isa => 'DBI::db', required=> 1);
@@ -779,6 +785,6 @@ At http://nits.com.ar/bibliosoph you can find:
=head1 BUGS
-This module is only tested with MySQL. Migration to other DB engines should be
-simple accomplished. If you would like to use Bibliosoph with other DB, please
+This module have been tested with MySQL, PosgreSQL and SQL Server. Migration to other DB engines
+should be simple accomplished. If you would like to use Bibliosoph with other DB, please
let me know and we can help you if you do the testing.
View
9 lib/SQL/Bibliosoph/Query.pm
@@ -3,7 +3,14 @@ package SQL::Bibliosoph::Query; {
use DBI;
use Data::Dumper;
use Time::HiRes qw(gettimeofday tv_interval);
- use Log::Contextual qw(:log);
+
+ use Log::Contextual::WarnLogger;
+ use Log::Contextual qw(:log),
+ -default_logger => Log::Contextual::WarnLogger->new({
+ env_prefix => 'Bibliosoph'
+ });
+
+
use feature qw(say);
use SQL::Bibliosoph::Dummy;
Please sign in to comment.
Something went wrong with that request. Please try again.