Bugzilla – Attachment 18820 Details for
Bug 8190
Add a logging module to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8190: Add the 'alert' level.
Bug-8190-Add-the-alert-level.patch (text/plain), 1.79 KB, created by
Jonathan Druart
on 2013-06-10 12:49:12 UTC
(
hide
)
Description:
Bug 8190: Add the 'alert' level.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-06-10 12:49:12 UTC
Size:
1.79 KB
patch
obsolete
>From abe29e604902e8df40c4ff113384f2a2b0ca271f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 10 Jun 2013 14:43:41 +0200 >Subject: [PATCH] Bug 8190: Add the 'alert' level. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > Koha/Utils/Logger.pm | 9 ++++++++- > .../prog/en/modules/admin/preferences/admin.pref | 3 ++- > 2 files changed, 10 insertions(+), 2 deletions(-) > >diff --git a/Koha/Utils/Logger.pm b/Koha/Utils/Logger.pm >index c7b4680..f4a097f 100644 >--- a/Koha/Utils/Logger.pm >+++ b/Koha/Utils/Logger.pm >@@ -26,7 +26,8 @@ sub _write { > my ( $self, $msg, $log_level, $dump, $cb ) = @_; > > my $LEVEL_STR = { >- 1 => 'UNUS ', >+ 0 => 'UNUS ', >+ 1 => 'ALERT ', > 2 => 'CRIT ', > 3 => 'ERROR ', > 4 => 'WARN ', >@@ -56,6 +57,12 @@ sub _write { > sub unusable { > my ( $self, $msg, $dump ) = @_; > my $cb = $self->_called_by(); >+ $self->_write( $msg, 0, $dump, $cb ); >+} >+ >+sub alert { >+ my ( $self, $msg, $dump ) = @_; >+ my $cb = $self->_called_by(); > $self->_write( $msg, 1, $dump, $cb ); > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >index 50f12fb..3f93cf5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >@@ -118,7 +118,8 @@ Administration: > - Set the level > - pref: LogLevel > choices: >- 1: 1- Unusable >+ 0: 0- Unusable >+ 1: 1- Alert > 2: 2- Critical > 3: 3- Error > 4: 4- Warning >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8190
:
9921
|
10996
|
12257
|
12264
|
12265
|
12270
|
12282
|
12283
|
12284
|
12287
|
12743
|
12744
|
12745
|
12746
|
13739
|
13740
|
13762
|
13763
|
13925
|
13926
|
14294
|
14296
|
14318
|
14319
|
14320
|
14321
|
14324
|
14388
|
14703
|
14704
|
14705
|
16426
|
16427
|
16428
|
16429
|
16430
|
18799
|
18800
|
18801
|
18802
|
18803
|
18819
|
18820
|
18870
|
18871
|
18872
|
18873
|
18874
|
18875
|
18876
|
18877
|
18880
|
18881
|
18882
|
18883
|
18884
|
18886
|
18887
|
18888
|
18890
|
34837
|
34838
|
34839
|
34840
|
34841
|
34842
|
34843
|
34844
|
34845