Download the PHP package stackify/monolog without Composer
On this page you can find all versions of the php package stackify/monolog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package monolog
Stackify Monolog v3 Handler
Monolog handler for sending log messages and exceptions to Stackify. Monolog >= 3.0.0 is supported.
For Monolog V1
Use the 1.x branch
For Monolog V2
Use the 2.x branch
- Errors and Logs Overview: http://support.stackify.com/errors-and-logs-overview/
- Sign Up for a Trial: http://www.stackify.com/sign-up/
Installation
Install the latest version with composer require stackify/monolog "~2.0"
Installation with Linux Agent
This is the suggested installation option, offering the best logging performance.
PHP:
Symfony:
Optional Settings
Log Server Environment Variables
- Server environment variables can be added to error log message metadata. Note: This will log all system environment variables; do not enable if sensitive information such as passwords or keys are stored this way.
Installation without Linux Agent
This option does not require a Stackify Agent to be installed because it sends data directly to Stackify services. It collects log entries in batches, calls curl using the function, and sends data to the background immediately []. This will affect the performance of your application minimally, but it requires permissions to call inside the PHP script and it may cause silent data loss in the event of any network issues. This transport method does not work on Windows. To configure ExecTransport you need to pass the environment name and API key (license key):
PHP:
Symfony:
Optional Configuration
Proxy
- ExecTransport supports data delivery through proxy. Specify proxy using libcurl format: [protocol://][user:password@]proxyhost[:port]
Curl path
- It can be useful to specify destination path for ExecTransport. This option is set to 'curl' by default.
Log Server Environment Variables
- Server environment variables can be added to error log message metadata. Note: This will log all system environment variables; do not enable if sensitive information such as passwords or keys are stored this way.
Notes
To get more error details pass Exception objects to the logger if available:
Additional Configuration
For additional configurations, you can set on the XML or the PHP File Configuration. Reference for the additional options are located on the stackify logger repository Stackify PHP Logger - Configuration Settings
Transport Level
- This applies to all the transports
(ExecTransport, CurlTransport, AgentTransport, AgentSocketTransport)
Handler Level
- This applies to the current Monolog Handler
Handler Level Option
-
Include Channel
- This will include the logger name or the channel set for the log entry.
- Include Extra In Context
- This will include the extra property to the context (merging extra to context)
Symfony
Troubleshooting
If transport does not work, try looking into file (if it is available for writing). Errors are also written to global PHP error_log. Note that ExecTransport does not produce any errors at all, but you can switch it to debug mode:
You can set it also on the Logger
level. Setting the Debug
and DebugLogPath
License
Copyright 2019 Stackify, LLC.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.