Login
Remember
Register
PHPOnlineSupport
Questions
Unanswered
Tags
Categories
Ask a Question
Ask a Question
Magento Log to custom file
+2
votes
274
views
asked
Jun 13, 2016
in
Magento
by
Arton
edited
Jun 15, 2016
How can we log the data to a custom file in Magento please? Have anyone tried this on Mage 1.9v?
magento
log
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
Jun 14, 2016
by
Johne Cage
You can do this simply by the following piece of code
<?php Mage::log('Your Log Message', Zend_Log::INFO, 'your_log_file.log'); ?>
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
0
votes
1
answer
1.7k
views
Magento stock history
asked
Feb 14, 2017
in
Magento
by
Toms
magento
log
stock
history
+1
vote
2
answers
7.5k
views
How to call .phtml file in magento 2.2?
asked
Jan 30, 2018
in
Frameworks
by
Doumeki
(
480
points)
magento
0
votes
3
answers
1.4k
views
How to Encrypt and decrypt information in Magento
asked
Nov 16, 2016
in
Magento
by
Suraj
encrypt
decrypt
magento
0
votes
1
answer
6.4k
views
How to know if my magento shop is safe?
asked
Nov 1, 2016
in
Magento
by
Carl
magento
attacks
virus
+2
votes
1
answer
632
views
Code to check if a customer is logged in Magento?
asked
Jun 15, 2016
in
Magento
by
Nicol Raulf
magento
mage
customer
0
votes
0
answers
427
views
How to configure Magento with the APC cache for performance
asked
May 30, 2016
in
Magento
by
Kiosk
magento
apc
cache
performance
All categories
General
(38)
CMS
(21)
Frameworks
(20)
eCommerce
(58)
Magento
(55)
Modules
(7)
Themes
(0)
Opencart
(1)
Prestashop
(0)
WooCommerce
(1)
IOT - Internet Of Things
(4)
Javascript
(6)
Databases
(1)
Categories
All categories
General
(38)
CMS
(21)
Frameworks
(20)
eCommerce
(58)
Magento
(55)
Modules
(7)
Themes
(0)
Opencart
(1)
Prestashop
(0)
WooCommerce
(1)
IOT - Internet Of Things
(4)
Javascript
(6)
Databases
(1)
Most popular tags
magento
wordpress
php
wp
category
module
product
laravel
kohana
admin
url
cache
jquery
database
configurable
serial1
serial
encrypt
phalcon
truncate
fishpig
js
include
javascript
cms
backend
email
plugin
post
arduino
seo
security
migrate
editor
decrypt
python
iot
map
json
shipping
password
core
log
mage
pear
string
replace
extension
import
php7
error
function
form
order
google
image
youtube
customer
site-links
adblocker
qr-code
barcode
samsung
mac
popup
newsletter
feed
auto-numbering-column
datatable
admin-bar
adminbar
toolbar
mongodb
address16
address64
xbee
301
302
parents
execution-time
calculate
case-sensitive
contains
interface-class
abstract-class
ternary
ajax
cancel
oracle12c
xampp
isset
submit
extract
matrix
uno
mega
coupon
print_r
programatically
member
...