Questions tagged [zend-log]

For issues relating to the Zend/Log logging component of the Zend framework.

Zend\Log is a component of the Zend framework for general purpose logging. It supports multiple log backends, formatting messages sent to the log, and filtering messages from being logged.

Resources:

45 questions
2
votes
2 answers

ZF2 application wide var (custom unique request id)

I'm using Zend-Framework2 and I'd like to log information about a request. Not all servers provide $_SERVER['UNIQUE_ID'], so I'd like to generate my own(Please see http://en.wikipedia.org/wiki/Universally_unique_identifier for the format). In ZF2…
ivodvb
  • 1,164
  • 2
  • 12
  • 39
2
votes
1 answer

Where should I store custom php logs?

We have some custom logs that we maintain in the database (mysql). We use these logs to keep track of recent errors and email activity in our zend framework application. We found out recently that these logs create some stress on the database, as…
aporat
  • 5,922
  • 5
  • 32
  • 54
1
vote
1 answer

FirePHP does not show extras when used with Zend_Log_Writer_Firebug

I've been developing with Zend Framework for ages (since 0.9) and this problem is nagging at my nerves ever since. I want to output messages on the FireBug Console with the help of FirePHP and from a Zend Framework 1.11 Application. I've configured…
Lars
  • 5,757
  • 4
  • 25
  • 55
1
vote
1 answer

Zend 3 - using logger as service

I am quite novice with ZF3 and I can't figure out how should I define a logger module as a service and how could I use (reuse) it in other modules. The official documentation is poor from this point of view. Any short example would be good.
1
vote
1 answer

How do I configure the default ZendLog factory for a Zend Framework MVC app?

I have a ZendFramework application. Its running Zend Framework 3. I added zend-log, and injected it into the constructor of the IndexController I log a message in the index action of the index controller like so. public function __construct(Logger…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
1
vote
1 answer

Log translated strings when using Zend_Translate

With Zend Framework it's easy to log strings that haven't got a translation. My question: how do you log the strings that do have a translation? Thanks!!
murze
  • 4,015
  • 8
  • 43
  • 70
1
vote
2 answers

Zend\Log Cannot Create Log File

I am learning ZF2 and trying to set up a restful web services architecture using ZF2. I am having a problem creating log file. Here's my module configuration: 'service_manager' => array( 'factories' => array( 'loggingService' =>…
Mani Rai
  • 665
  • 2
  • 9
  • 22
1
vote
3 answers

Zend Framework -> Zend_Log via application.ini => insert() on a non-object error

I am trying to get logging via the application.ini file going and I am getting stuck with an error. resources.log.db.writerName = "Db" resources.log.db.writerParams.db.adapter = "PDO_SQLITE" resources.log.db.writerParams.db.dbname = ROOT…
RoboTamer
  • 3,474
  • 2
  • 39
  • 43
1
vote
1 answer

Zend_log create two log files

I am writing my own Zend_log and having difficulty in following. I have to generate module specific logs which I am able to but with this I am also creating global one application.log ! which I do not want .. In my…
user269867
  • 3,266
  • 9
  • 45
  • 65
0
votes
1 answer

How to keep Zend_Debug HTML tags out of Zend_Log

I use Zend_Debug::dump to dump variables into a Zend_Log file. How can I get it to stop wrapping the output in HTML tags? The documentaion says "If the output stream is detected as a web presentation, the output of var_dump() is escaped using »…
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
0
votes
1 answer

Zend Log - Bad Log Priority

When I try to add a registerErrorHandler() to my log config in my bootstrap it gives the following error: Fatal error: Uncaught exception 'Zend_Log_Exception' with message 'Bad log priority' in /public/fb/library/Zend/Log.php:280 Stack…
0
votes
1 answer

Zend Framework Log Errors and Others to File

I need to log errors, access attempts, etc, to file by creating a plugin or adding in application.ini, in the error staying default to not show to final users thanks in advance.
Jean Michael
  • 117
  • 1
  • 2
  • 7
0
votes
1 answer

zend-log: Send errors to stderr, anything else to stdout

Currently my logger is set up like this: $logger = new Zend\Log\Logger(); $logger->addWriter(new Zend\Log\Writer\Stream('php://stdout')); The downside: Both $logger->err() and $logger->info() now print to stdout. However, I’d like the former to…
Rob
  • 1,158
  • 1
  • 12
  • 22
0
votes
2 answers

Logger does not log Exceptions thrown in application

I use the configuration below to create a logger: 'log' => [ 'logger' => [ 'writers' => [ 'stream' => [ 'name' => 'stream', 'priority' => \Zend\Log\Logger::INFO, 'options' => [ …
ciro
  • 771
  • 1
  • 8
  • 30
0
votes
1 answer

Is there a way to change timestamp of zend log to unix

I am currently using Zend framework 3 with zend log module. I noticed the Timestamp column of zend log table is not unix timestamp. I have tried to search solution but all I could see the way to change format. It there a way to change it and store…
Ali Rasheed
  • 2,765
  • 2
  • 18
  • 31