Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 49 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,73 +3,98 @@
`co-log` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.6.0.0 - Sep 18, 2023

### What's Changed

* Support GHC-9.6 - replace `typerep-map` with `dependent-map`. by @alaendle in [#264](https://github.com/co-log/co-log/pull/264)
* Support GHC 9.4. by @alaendle in [#252](https://github.com/co-log/co-log/pull/252)
* Add MonadUnliftIO instance by @newhoggy in [#240](https://github.com/co-log/co-log/pull/240)
* Update CI tested GHC versions & workaround for GHC < 9.4.5 (run-st, primitive-unlifted) by @alaendle in [#257](https://github.com/co-log/co-log/pull/257)
* Derive `MonadFail` for `LoggerT` by @alaendle in [#260](https://github.com/co-log/co-log/pull/260)
* docs: use relative path to benefit locally reading by @xieyuschen in [#253](https://github.com/co-log/co-log/pull/253)
* docs: refine readme by @xieyuschen in [#254](https://github.com/co-log/co-log/pull/254)
* tutorials: add demo for LoggerT and SimpleMsg, #84 by @xieyuschen in [#256](https://github.com/co-log/co-log/pull/256)
* docs: add a link to tutorial pages and aggregate all tutorial pages by @xieyuschen in [#259](https://github.com/co-log/co-log/pull/259)
* tutorials: add a tutorial for loggert and message by @xieyuschen in [#261](https://github.com/co-log/co-log/pull/261)
* Create tags and upload package candidates on version bumps. by @alaendle in [#265](https://github.com/co-log/co-log/pull/265)
* Added @alaendle as code owner. by @alaendle in [#258](https://github.com/co-log/co-log/pull/258)
* GA(deps): Bump actions/checkout from 3 to 4 by @dependabot in [#263](https://github.com/co-log/co-log/pull/263)

### New Contributors

* @xieyuschen made their first contribution in [#253](https://github.com/co-log/co-log/pull/253)
* @newhoggy made their first contribution in [#240](https://github.com/co-log/co-log/pull/240)

**Full Changelog**: https://github.com/co-log/co-log/compare/v0.5.0.0...v0.6.0.0

## 0.5.0.0 - Nov 2, 2022

* [#230](https://github.com/kowainik/co-log/issues/230):
* [#230](https://github.com/co-log/co-log/issues/230):
Support GHC-9.2.
* Allow `mtl-2.3`.
* Allow `vector-0.13`.
* Allow `hedgehog-1.2`.
* [#187](https://github.com/kowainik/co-log/issues/187):
* [#187](https://github.com/co-log/co-log/issues/187):
Remove `CoLog.Concurrent` module and executable.
* [#243](https://github.com/kowainik/co-log/pull/243):
* [#243](https://github.com/co-log/co-log/pull/243):
Improve printing in multiple threads.
* Drop support for GHC-8.2, GHC-8.4, GHC-8.6, GHC-8.8

## 0.4.0.2 — <M> <d>, 2021

* [#223](https://github.com/kowainik/co-log/pulls/223):
* [#223](https://github.com/co-log/co-log/pulls/223):
Support GHC-9.0.1.
Require typerep-map ^>= 0.4

## 0.4.0.1 — Apr 18, 2020

* [#186](https://github.com/kowainik/co-log/issues/186):
* [#186](https://github.com/co-log/co-log/issues/186):
Support GHC-8.10.1.

## 0.4.0.0 — Jan 19, 2020

* [#120](https://github.com/kowainik/co-log/issues/120):
* [#120](https://github.com/co-log/co-log/issues/120):
Improve time formatting.

Old: `29-12-2019 22:00:00.000`

New: `29 Dec 2019 22:00:00.000 +00:00`

(by [@vrom911](https://github.com/vrom911))
* [#144](https://github.com/kowainik/co-log/issues/144):
* [#144](https://github.com/co-log/co-log/issues/144):
Add Windows CI check.
(by [@vrom911](https://github.com/vrom911))
* [#148](https://github.com/kowainik/co-log/issues/148):
* [#148](https://github.com/co-log/co-log/issues/148):
Support GHC-8.8.2.
(by [@chshersh](https://github.com/chshersh))
* [#119](https://github.com/kowainik/co-log/issues/119):
* [#119](https://github.com/co-log/co-log/issues/119):
Add new message type that allows printing messages without
`Severity`.
(by [@sphaso](https://github.com/sphaso))
* [#150](https://github.com/kowainik/co-log/issues/150):
* [#150](https://github.com/co-log/co-log/issues/150):
Introduce `formatWith` — beginner-friendly alias for formatting combinator.
(by [@chshersh](https://github.com/chshersh))
* Use `chronos-1.1` as `1.0.9` is not Windows-compatible.
(by [@vrom911](https://github.com/vrom911))
* [#156](https://github.com/kowainik/co-log/issues/156):
* [#156](https://github.com/co-log/co-log/issues/156):
Improve documentation for the `Colog.Concurrent` module.
(by [@chshersh](https://github.com/chshersh))
* [#146](https://github.com/kowainik/co-log/issues/146):
* [#146](https://github.com/co-log/co-log/issues/146):
Allow `ansi-terminal-0.10`.
(by [@mpilgrem](https://github.com/mpilgrem))
* [#124](https://github.com/kowainik/co-log/issues/124):
* [#124](https://github.com/co-log/co-log/issues/124):
Implement executable playground for concurrent logging.
(by [@chshersh](https://github.com/chshersh))

## 0.3.0.0 — May 5, 2019

* [#77](https://github.com/kowainik/co-log/issues/77):
* [#77](https://github.com/co-log/co-log/issues/77):
**Important:** Use `chronos` time formatter. This is a breaking change because
default field map in `RichMessage` now contains different type representing
time. If you use your custom formatter for time, you should change it.
Othwerwise no observable differences in the library API usage will be noticed.
* [#103](https://github.com/kowainik/co-log/issues/103):
* [#103](https://github.com/co-log/co-log/issues/103):
**Breaking change:** make `Message` data type polymorhic over the type of severity.

**Migration guide:** this change is done in backwards-compatible way. If you
Expand All @@ -81,30 +106,30 @@ The changelog is available [on GitHub][2].
messageText -> msgText
```
* Export more formatting functions to make implementation of custom formatters easier.
* [#96](https://github.com/kowainik/co-log/issues/96):
* [#96](https://github.com/co-log/co-log/issues/96):
Add `simpleMessageAction` and `richMessageAction` to work with `Message`s.
* Use `co-log-core` of version `0.2.0.0`.

## 0.2.0 — Nov 15, 2018

* [#45](https://github.com/kowainik/co-log/issues/45):
* [#45](https://github.com/co-log/co-log/issues/45):
Introduce approach for concurrent log writing.
* [#46](https://github.com/kowainik/co-log/issues/46):
* [#46](https://github.com/co-log/co-log/issues/46):
Moves `logStringStdout`, `logStringStderr`, `logStringHandle`,
`withLogStringFile` from `Colog.Actions` to `Colog.Core.IO`
* [#77](https://github.com/kowainik/co-log/issues/77):
* [#77](https://github.com/co-log/co-log/issues/77):
Remove `relude` from dependencies.
Add HLint check to Travis CI.
* [#64](https://github.com/kowainik/co-log/issues/64):
* [#64](https://github.com/co-log/co-log/issues/64):
Introduce basic benchmarks.
* [#20](https://github.com/kowainik/co-log/issues/20):
* [#20](https://github.com/co-log/co-log/issues/20):
Add experimental support for logger rotation (see `Colog.Rotation` module).
* [#39](https://github.com/kowainik/co-log/issues/39):
* [#39](https://github.com/co-log/co-log/issues/39):
Support GHC-8.2.2 and GHC-8.6.2.

## 0.1.0

* [#37](https://github.com/kowainik/co-log/issues/37):
* [#37](https://github.com/co-log/co-log/issues/37):
Add bounds to all dependencies. Move `Prelude` to the
`other-modules` section.

Expand All @@ -113,4 +138,4 @@ The changelog is available [on GitHub][2].
* Initially created.

[1]: https://pvp.haskell.org
[2]: https://github.com/kowainik/co-log/releases
[2]: https://github.com/co-log/co-log/releases
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<img align="left" width="180" height="180" src="https://user-images.githubusercontent.com/8126674/80955687-92f21a80-8df7-11ea-90d3-422dafdc8391.png">

[![GitHub CI](https://github.com/kowainik/co-log/workflows/CI/badge.svg)](https://github.com/kowainik/co-log/actions)
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/kowainik/co-log/blob/main/LICENSE)
[![GitHub CI](https://github.com/co-log/co-log/workflows/CI/badge.svg)](https://github.com/co-log/co-log/actions)
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/co-log/co-log/blob/main/LICENSE)

`co-log` is a composable and configurable logging framework. It
combines all the benefits of Haskell idioms to provide a reasonable
Expand Down
10 changes: 5 additions & 5 deletions co-log.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: co-log
version: 0.5.0.0
version: 0.6.0.0
synopsis: Composable Contravariant Comonadic Logging Library
description:
The default implementation of logging based on [co-log-core](http://hackage.haskell.org/package/co-log-core).
Expand All @@ -9,13 +9,13 @@ description:
.
* [co-log: Composable Contravariant Combinatorial Comonadic Configurable Convenient Logging](https://kowainik.github.io/posts/2018-09-25-co-log)

homepage: https://github.com/kowainik/co-log
bug-reports: https://github.com/kowainik/co-log/issues
homepage: https://github.com/co-log/co-log
bug-reports: https://github.com/co-log/co-log/issues
license: MPL-2.0
license-file: LICENSE
author: Dmitrii Kovanikov
maintainer: Kowainik <[email protected]>
copyright: 2018-2023 Kowainik
copyright: 2018-2022 Kowainik, 2023 Co-Log
category: Logging, Contravariant, Comonad
build-type: Simple
stability: provisional
Expand All @@ -29,7 +29,7 @@ tested-with: GHC == 8.10.7

source-repository head
type: git
location: https://github.com/kowainik/co-log.git
location: https://github.com/co-log/co-log.git

common common-options
build-depends: base >= 4.14 && < 4.19
Expand Down
3 changes: 1 addition & 2 deletions src/Colog.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

This package contains @mtl@ implementation of composable, contravariant and
comonadic logging based on @co-log-core@.
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Actions.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

Logging actions for various text types.
-}
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Contra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
{-# LANGUAGE CPP #-}

{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

This module contains 'LogAction' orphan instances of @contravariant@ classes.
-}
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Message.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
{-# LANGUAGE TypeFamilies #-}

{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

This module contains logging messages data types along with the formatting and
logging actions for them.
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Monad.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{-# LANGUAGE InstanceSigs #-}

{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

Core of the @mtl@ implementation.
-}
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Pure.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>

Pure implementation of logging action.
-}
Expand Down
3 changes: 1 addition & 2 deletions src/Colog/Rotation.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{- |
Copyright: (c) 2018-2022 Kowainik
Copyright: (c) 2018-2022 Kowainik, 2023 Co-Log
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>
Stability: experimental

__NOTE:__ This functionality is not to be considered stable
Expand Down