Where is yii log




















Message exporting in a target follows the same principle as in the logger. See Yii guide to logging for more info. The package is tested with PHPUnit. To run tests:. The package tests are checked with Infection mutation framework. To run it:. The code is statically analyzed with Psalm. To run static analysis:. The Yii Logging Library is free software. It is released under the terms of the BSD License. Maintained by Yii Software. Skip to content. All log messages are maintained in an array by the logger object.

The logger object flushed the recorded messages to the log targets each time the array accumulates a certain number of messages default is Even when the logger object flushes log messages to log targets, they do not get exported immediately.

The export occurs when a log target accumulates a certain number of messages default is In the above code, we define the log application component, set the flushInterval and exportInteval properties to 1 so that all log messages appear in the log files immediately. We also omit the levels property of the log target. It means that log messages of all categories error, warning, info, trace will appear in the log files.

Indicates whether this log target is enabled. Defaults to true. Note that the type of this property differs in getter and setter. See getEnabled and setEnabled for details. List of message categories that this target is NOT interested in. Defaults to empty, meaning no uninteresting messages. You can use an asterisk at the end of a category so that the category can be used to match those categories sharing the same common prefix. How many messages should be accumulated before they are exported.

Defaults to Note that messages will always be exported when the application terminates. Set this property to be 0 if you don't want to export messages until the application terminates. The message levels that this target is interested in. This is a bitmap of level values. Defaults to 0, meaning all available levels. See getLevels and setLevels for details. List of the PHP predefined variables that should be logged in a message. Otherwise it won't be logged. Since version 2. The messages that are retrieved from the logger so far by this log target.

And if requested, it will also export the filtering result to specific medium e. Log messages to be processed.



0コメント

  • 1000 / 1000