Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Madhuk
vtigercrm
Commits
4825cd2b
Commit
4825cd2b
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
log4php library upgraded version 2.1.0
parent
f05955d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/logging.php
+10
-10
10 additions, 10 deletions
include/logging.php
libraries/log4php/Logger.php
+5
-7
5 additions, 7 deletions
libraries/log4php/Logger.php
with
15 additions
and
17 deletions
include/logging.php
+
10
−
10
View file @
4825cd2b
...
...
@@ -22,20 +22,20 @@ require_once('config.php');
// Performance Optimization: Configure the log folder
@
include_once
(
'config.performance.php'
);
global
$PERFORMANCE_CONFIG
;
define
(
'LOG4PHP_DEFAULT_INIT_OVERRIDE'
,
true
);
if
(
isset
(
$PERFORMANCE_CONFIG
)
&&
isset
(
$PERFORMANCE_CONFIG
[
'LOG4PHP_DEBUG'
])
&&
$PERFORMANCE_CONFIG
[
'LOG4PHP_DEBUG'
])
{
define
(
'LOG4PHP_DIR'
,
'libraries/log4php.debug'
);
require_once
(
LOG4PHP_DIR
.
'/Logger.php'
);
Logger
::
configure
(
'log4php.properties'
);
}
else
{
define
(
'LOG4PHP_DIR'
,
'libraries/log4php'
);
require_once
(
LOG4PHP_DIR
.
'/Logger.php'
);
require_once
(
LOG4PHP_DIR
.
'/LoggerPropertyConfigurator.php'
);
$config
=
new
LoggerPropertyConfigurator
();
$config
->
configure
(
'log4php.properties'
);
}
// END
define
(
'LOG4PHP_DEFAULT_INIT_OVERRIDE'
,
true
);
require_once
(
LOG4PHP_DIR
.
'/Logger.php'
);
//require_once(LOG4PHP_DIR.'/LoggerPropertyConfigurator.php');
//
//$config = new LoggerPropertyConfigurator();
//$config->configure('log4php.properties');
Logger
::
configure
(
'log4php.properties'
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
libraries/log4php/Logger
Manager
.php
→
libraries/log4php/Logger.php
+
5
−
7
View file @
4825cd2b
...
...
@@ -10,13 +10,6 @@
/** Classes to avoid logging */
class
LoggerManager
{
static
function
getlogger
(
$name
=
'ROOT'
)
{
$configinfo
=
LoggerPropertyConfigurator
::
getInstance
()
->
getConfigInfo
(
$name
);
return
new
Logger
(
$name
,
$configinfo
);
}
}
/**
* Core logging class.
*/
...
...
@@ -101,6 +94,11 @@ class Logger {
function
isDebugEnabled
()
{
return
$this
->
isLevelEnabled
(
'DEBUG'
);
}
static
function
getlogger
(
$name
=
'ROOT'
)
{
$configinfo
=
LoggerPropertyConfigurator
::
getInstance
()
->
getConfigInfo
(
$name
);
return
new
Logger
(
$name
,
$configinfo
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment