|
Revision 147, 2.5 kB
(checked in by hans, 2 years ago)
|
- Fixes #65: Convert all loggers/listeners to use streams.
- Also cleans up phing.system.io package contents.
|
- Property svn:executable set to
*
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
require_once 'phing/BuildListener.php'; |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
interface BuildLogger extends BuildListener { |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
* Sets the min log level that this logger should respect. |
|---|
| 43 |
* |
|---|
| 44 |
* Messages below this level are ignored. |
|---|
| 45 |
* |
|---|
| 46 |
* Constants for the message levels are in Project.php. The order of |
|---|
| 47 |
* the levels, from least to most verbose, is: |
|---|
| 48 |
* - Project::MSG_ERR |
|---|
| 49 |
* - Project::MSG_WARN |
|---|
| 50 |
* - Project::MSG_INFO |
|---|
| 51 |
* - Project::MSG_VERBOSE |
|---|
| 52 |
* - Project::MSG_DEBUG |
|---|
| 53 |
* |
|---|
| 54 |
* @param int $level The log level integer (e.g. Project::MSG_VERBOSE, etc.). |
|---|
| 55 |
*/ |
|---|
| 56 |
public function setMessageOutputLevel($level); |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
* Sets the standard output stream to use. |
|---|
| 60 |
* @param OutputStream $output Configured output stream (e.g. STDOUT) for standard output. |
|---|
| 61 |
*/ |
|---|
| 62 |
public function setOutputStream(OutputStream $output); |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
* Sets the output stream to use for errors. |
|---|
| 66 |
* @param OutputStream $err Configured output stream (e.g. STDERR) for errors. |
|---|
| 67 |
*/ |
|---|
| 68 |
public function setErrorStream(OutputStream $err); |
|---|
| 69 |
|
|---|
| 70 |
} |
|---|