Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgo-magento-extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgo-magento-extension
Commits
b3fb837c
Commit
b3fb837c
authored
11 months ago
by
Christel Loftus
Browse files
Options
Downloads
Patches
Plain Diff
logger not working change to bobgo_plugin.log
parent
4e64cf1a
No related branches found
No related tags found
1 merge request
!6
Rates at checkout
Pipeline
#65206
passed
11 months ago
Stage: tagged_release
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Logger/Handler.php
+3
-2
3 additions, 2 deletions
Logger/Handler.php
Logger/Logger.php
+0
-8
0 additions, 8 deletions
Logger/Logger.php
etc/di.xml
+15
-7
15 additions, 7 deletions
etc/di.xml
etc/env.php
+18
-18
18 additions, 18 deletions
etc/env.php
with
36 additions
and
35 deletions
Logger/Handler.php
+
3
−
2
View file @
b3fb837c
<?php
namespace
BobGroup\BobGo\Logger
;
use
Magento\Framework\Logger\Handler\Base
;
use
Monolog\Logger
;
use
Magento\Framework\Logger\Handler\Base
as
MagentoBaseHandler
;
class
Handler
extends
Base
class
Handler
extends
MagentoBaseHandler
{
protected
$fileName
=
'/var/log/bobgo_plugin.log'
;
protected
$loggerType
=
Logger
::
DEBUG
;
...
...
This diff is collapsed.
Click to expand it.
Logger/Logger.php
deleted
100644 → 0
+
0
−
8
View file @
4e64cf1a
<?php
namespace
BobGroup\BobGo\Logger
;
use
Monolog\Logger
as
MonologLogger
;
class
Logger
extends
MonologLogger
{
}
This diff is collapsed.
Click to expand it.
etc/di.xml
+
15
−
7
View file @
b3fb837c
...
...
@@ -17,12 +17,20 @@
<!--</config>-->
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:ObjectManager/etc/config.xsd"
>
<type
name=
"BobGroup\BobGo\
Observer\ConfigChangeObserv
er"
>
<type
name=
"BobGroup\BobGo\
Logger\Handl
er"
>
<arguments>
<argument
name=
"scopeConfig"
xsi:type=
"object"
>
Magento\Framework\App\Config\ScopeConfigInterface
</argument>
<argument
name=
"curl"
xsi:type=
"object"
>
Magento\Framework\HTTP\Client\Curl
</argument>
<argument
name=
"logger"
xsi:type=
"object"
>
Psr\Log\LoggerInterface
</argument>
<argument
name=
"fileName"
xsi:type=
"string"
>
/var/log/bobgo_plugin.log
</argument>
<argument
name=
"loggerType"
xsi:type=
"number"
>
100
</argument>
</arguments>
</type>
<type
name=
"BobGroup\BobGo\Logger\Logger"
>
<arguments>
<argument
name=
"handlers"
xsi:type=
"array"
>
<item
name=
"bobgo"
xsi:type=
"object"
>
BobGroup\BobGo\Logger\Handler
</item>
</argument>
</arguments>
</type>
</config>
This diff is collapsed.
Click to expand it.
etc/env.php
+
18
−
18
View file @
b3fb837c
<?php
//
return [
//
'backend' => [
//
'frontName' => 'admin'
//
],
//
'install' => [
//
'date' => 'Wed, 15 Jan 2020 00:00:00 +0000'
//
],
//
'system' => [
//
'default' => [
//
'dev' => [
//
'log' => [
//
'active' => '1'
//
]
//
]
//
]
//
],
//
// Other configurations...
//
];
return
[
'backend'
=>
[
'frontName'
=>
'admin'
],
'install'
=>
[
'date'
=>
'Wed, 15 Jan 2020 00:00:00 +0000'
],
'system'
=>
[
'default'
=>
[
'dev'
=>
[
'log'
=>
[
'active'
=>
'1'
]
]
]
],
// Other configurations...
];
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