FileLoggerSmtpFactory
- Full name:
\Codefy\Framework\Factory\FileLoggerSmtpFactory
- This class implements:
\Codefy\Framework\Contracts\LoggerFactory
Methods
getLogger
- This method is static.
Throws:
Inherited methods
emergency
System is unusable.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
alert
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
critical
Critical conditions.
Example: Application component unavailable, unexpected exception.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
error
Runtime errors that do not require immediate action but should typically be logged and monitored.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
warning
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
notice
Normal but significant events.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
info
Interesting events.
Example: User logs in, SQL logs.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
debug
Detailed debug information.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$context | array |
Throws:
Automatically generated on 2025-10-13