TinyLogger

所属分类:collect
开发工具:Smalltalk
文件大小:0KB
下载次数:0
上传日期:2023-02-23 14:06:18
上 传 者sh-1993
说明:  用于Pharo应用程序的非常小的记录器。,
(A really small logger for Pharo applications.,)

文件列表:
.project (27, 2022-07-07)
.smalltalk.ston (207, 2022-07-07)
CHANGELOG.md (3903, 2022-07-07)
LICENSE (1070, 2022-07-07)
documentation/ (0, 2022-07-07)
documentation/DevelopmentGuide.md (3959, 2022-07-07)
documentation/UserGuide.md (9009, 2022-07-07)
documentation/uml.png (25589, 2022-07-07)
documentation/uml.uxf (4380, 2022-07-07)
scripts/ (0, 2022-07-07)
scripts/mutationTesting.st (913, 2022-07-07)
src/ (0, 2022-07-07)
src/.properties (21, 2022-07-07)
src/BaselineOfTinyLogger/ (0, 2022-07-07)
src/BaselineOfTinyLogger/BaselineOfTinyLogger.class.st (837, 2022-07-07)
src/BaselineOfTinyLogger/ManifestBaselineOfTinyLogger.class.st (415, 2022-07-07)
src/BaselineOfTinyLogger/package.st (42, 2022-07-07)
src/TinyLogger-Tests/ (0, 2022-07-07)
src/TinyLogger-Tests/ManifestTinyLoggerTests.class.st (415, 2022-07-07)
src/TinyLogger-Tests/TinyAbstractLoggerTest.class.st (1048, 2022-07-07)
src/TinyLogger-Tests/TinyFileLoggerTest.class.st (2228, 2022-07-07)
src/TinyLogger-Tests/TinyLeafLoggerTest.class.st (908, 2022-07-07)
src/TinyLogger-Tests/TinyLoggerTest.class.st (12901, 2022-07-07)
src/TinyLogger-Tests/TinyStdoutLoggerTest.class.st (748, 2022-07-07)
src/TinyLogger-Tests/package.st (40, 2022-07-07)
src/TinyLogger/ (0, 2022-07-07)
src/TinyLogger/ManifestTinyLogger.class.st (615, 2022-07-07)
src/TinyLogger/Object.extension.st (359, 2022-07-07)
src/TinyLogger/TinyAbstractLogger.class.st (1459, 2022-07-07)
src/TinyLogger/TinyCurrentLogger.class.st (486, 2022-07-07)
src/TinyLogger/TinyFileLogger.class.st (2351, 2022-07-07)
src/TinyLogger/TinyLeafLogger.class.st (2362, 2022-07-07)
src/TinyLogger/TinyLogger.class.st (8810, 2022-07-07)
src/TinyLogger/TinyOpenTerminalVisitor.class.st (713, 2022-07-07)
... ...

# TinyLogger [![Build Status](https://travis-ci.org/jecisc/TinyLogger.svg?branch=master)](https://travis-ci.org/jecisc/TinyLogger) [![Coverage Status](https://coveralls.io/repos/github/jecisc/TinyLogger/badge.svg)](https://coveralls.io/github/jecisc/TinyLogger) A really small logger for Pharo applications. - [Installation](#installation) - [Quick start](#quick-start) - [Documentation](#documentation) - [Version management](#version-management) - [Smalltalk versions compatibility](#smalltalk-versions-compatibility) - [Contact](#contact) ## Installation To install TinyLogger on your Pharo image, execute the following script: ```Smalltalk Metacello new githubUser: 'jecisc' project: 'TinyLogger' commitish: 'v1.x.x' path: 'src'; baseline: 'TinyLogger'; load ``` To add TinyLogger to your baseline: ```Smalltalk spec baseline: 'TinyLogger' with: [ spec repository: 'github://jecisc/TinyLogger:v1.x.x/src' ] ``` Note you can replace the #master by another branch such as #development or a tag such as #v1.0.0, #v1.? or #v1.2.? . ## Quick start To create a file logger using a file `Progress.log` and records all messages as soon as the project is loaded in a a Pharo image, in the initialize method (class side) of a project put the following: ```Smalltalk TinyLogger default addFileLoggerNamed: 'Progress.log'. ``` To create a file logger that is reset each time you run an application. Put the following in the method that is run: ```Smalltalk TinyLogger default ensureFileLoggerNamed: 'Progress.log'; "Add the file logger only if not already" clearLog "This will delete the previous 'Progress.log' file". ``` Then write a message to the log using `record`: ```Smalltalk 'Uh oh. Something happened.' record ``` Or write a message to the log for the execution of an action using `execute:recordedAs:`: ```Smalltalk self execute: [ "Some code doing something" ] recordedAs: 'Launching bananas.' ``` Now, if you want to know more about the project, let's proceed on a more detailed documentation. ## Documentation Documentation is split into separate links as follows: * [User documentation](documentation/UserGuide.md) * [Developer documentation](documentation/DevelopmentGuide.md) ## Version management This project use semantic versioning to define the releases. This means that each stable release of the project will be assigned a version number of the form `vX.Y.Z`. - **X**defines the major version number - **Y** defines the minor version number - **Z** defines the patch version number When a release contains only bug fixes, the patch number increases. When the release contains new features that are backward compatible, the minor version increases. When the release contains breaking changes, the major version increases. Thus, it should be safe to depend on a fixed major version and moving minor version of this project. ## Smalltalk versions compatibility | Version | Compatible Pharo versions | |------------- |--------------------------- | | 1.x.x | Pharo 61, 70, 80, 90, 10 | ## Contact If you have any questions or problems do not hesitate to open an issue or contact cyril (a) ferlicot.me

近期下载者

相关文件


收藏者