2019-08-01 -> 2021-08-05
A logger service to use in your Light applications.
This is a Light plugin.
This is part of the universe framework.
Using the planet installer via light-cli
lt install Ling.Light_Logger
Using the uni command.
uni import Ling/Light_Logger
Or just download it and place it where you want otherwise.
- Light_Logger api (generated with DocTools)
- Service
- Pages
This plugin provides the following services:
- logger
More info in the description of the LightLoggerService class.
Here is an example of service configuration:
logger:
instance: Ling\Light_Logger\LightLoggerService
methods_collection: []
-
method: addListener
args:
channels: *
listener:
instance: Ling\Light_Logger\Listener\LightFileLoggerListener
methods:
configure:
options:
file: ${app_dir}/log/light_log.log
format: [{channel}]: {dateTime} -- {message}
expand_array: true
minus:
- todo
-
method: addListener
args:
channels: todo
listener:
instance: Ling\Light_Logger\Listener\LightFileLoggerListener
methods:
configure:
options:
file: ${app_dir}/log/todo.log
format: [{channel}]: {dateTime} -- {message}
expand_array: true
# -
# method: addListener
# args:
# channels: *
# listener:
# instance: Ling\Light_Logger\Listener\LightLastMessageFileLoggerListener
# methods:
# setFile:
# file: ${app_dir}/log/light_log_last.txt
# configure:
# options:
# format: [{channel}]: {dateTime} -- {message}
# expand_array: true
-
1.11.12 -- 2021-08-05
- fix service not recognizing @container and @service notation for open registration
- update conception notes, add common channels section
- update docblock comments of main dispatch methods (msg is of type mixed)
-
1.11.11 -- 2021-06-25
- fix functional typo in LightLoggerHelper
-
1.11.10 -- 2021-06-25
- add open registration system
-
1.11.9 -- 2021-05-31
- Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
-
1.11.8 -- 2021-05-03
- fake commit to test assets generation
-
1.11.7 -- 2021-03-15
- update planet to adapt Ling.Light:0.70.0
-
1.11.6 -- 2021-03-05
- update README.md, add install alternative
-
1.11.5 -- 2020-12-08
- Fix lpi-deps not using natsort.
-
1.11.4 -- 2020-12-04
- Add lpi-deps.byml file
-
1.11.3 -- 2020-11-30
- update conception notes
-
1.11.2 -- 2020-11-06
- update LightFileLoggerListener, add formatting option
-
1.11.1 -- 2020-06-18
- update LightCleanableFileLoggerListener, add class comment
-
1.11.0 -- 2020-06-18
- add LightCleanableFileLoggerListener class
-
1.10.0 -- 2020-06-18
- update LightLastMessageFileLoggerListener, now accepts the file option like LightFileLoggerListener
-
1.9.0 -- 2020-06-01
- update LightFileLoggerListener, now accepts the {date} tag
-
1.8.2 -- 2020-01-08
- fix LightFileLoggerListener->listen printing debug string (typo)
-
1.8.1 -- 2020-01-08
- fix LightLoggerService->dispatch not handling * channel correctly (functional typo)
-
1.8.0 -- 2019-12-12
- update LightLoggerListenerInterface->listen, the msg argument can now be of any type
-
1.7.2 -- 2019-12-12
- fix BaseLoggerListener->configure documentation comment markdown formatting
-
1.7.1 -- 2019-12-11
- update BaseLoggerListener->configure comment for the documentation
-
1.7.0 -- 2019-12-11
- update LightLoggerService, the setFormat method has beend moved to the listeners
-
1.6.0 -- 2019-11-11
- update LightLoggerService->getFormattedMessage, now can log \Exception instances
-
1.5.0 -- 2019-10-17
- add LightLoggerService->addListener minus argument
-
1.4.2 -- 2019-10-17
- update README.md
-
1.4.1 -- 2019-10-17
- add sentence in the documentation
-
1.4.0 -- 2019-09-24
- add LightLastMessageFileLoggerListener
-
1.3.0 -- 2019-08-30
- add LightLoggerService property: useExpandedArray
-
1.2.1 -- 2019-08-30
- update LightLoggerService, now implements UniversalLoggerInterface
- fix LightLoggerListenerInterface implementing UniversalLoggerInterface
-
1.2.0 -- 2019-08-30
- updated LightLoggerListenerInterface->log to adapt new UniversalLoggerInterface signature
-
1.1.0 -- 2019-08-30
- renamed LightLoggerListenerInterface->listen to log
- update LightLoggerListenerInterface now extends UniversalLoggerInterface
-
1.0.0 -- 2019-08-01
- initial commit