Skip to content

Commit 45870f7

Browse files
committed
Documentation fixes.
1 parent 9398b0e commit 45870f7

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

co-log-json/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Revision history for co-log-json
22

3-
## 0.0.2.0 -- 2020-10-25
3+
## 0.0.1.0 -- 2020-11-11
44

55
* First version.

co-log-json/co-log-json.cabal

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description:
1414
* "Colog.Json.Action" — efficient function for dumping logs in the
1515
following format.
1616

17-
By default it emits logs of the following format (pretty-printed for convenience):
17+
By default it emits logs in the following format (pretty-printed for convenience):
1818

1919
@
2020
{ "namespace":"server.package" -- namespace for the component
@@ -34,17 +34,7 @@ description:
3434
The most interesting thing here is the field @data@ that can be used by the user
3535
to add additional structured info to the message.
3636

37-
There are some thigs that are not implemented:
38-
39-
* pretty-printing
40-
* timestamps
41-
* sending messages to remote services
42-
* message colouring
43-
44-
All that functionality that be implemented by the external tools that the program
45-
pipes messages to.
46-
47-
bug-reports: https://github.com/cheopslab/cheops-logger/issues
37+
bug-reports: https://github.com/cheopslab/cheops-logger/issues/new?labels=co-log-json
4838
license: MPL-2.0
4939
license-file: LICENSE
5040
author: Alexander Vershilov
@@ -82,12 +72,5 @@ library
8272
, co-log-core ^>=0.2
8373
, string-conv ^>=0.1
8474
hs-source-dirs: src
85-
ghc-options: -Wall -Werror
75+
ghc-options: -Wall
8676
default-language: Haskell2010
87-
88-
--test-suite co-log-structured-test
89-
-- default-language: Haskell2010
90-
-- type: exitcode-stdio-1.0
91-
-- hs-source-dirs: test
92-
-- main-is: MyLibTest.hs
93-
-- build-depends: base ^>=4.14.1.0

co-log-json/src/Colog/Json.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ mkLogger action = LoggerEnv action Seq.empty
117117
-- combie it with the rest of the colog ecosystem.
118118
--
119119
-- @
120-
-- 'Colog.Core.Action.cfilter' (\(sev, _) -> sev > 'Colog.Json.DebugS') 'unLogger' ctx
120+
-- 'Colog.Core.Action.cfilter' (\\(sev, _) -> sev > 'Colog.Json.DebugS') 'unLogger' ctx
121121
-- @
122122
unLogger :: LoggerEnv -> LogAction IO (Severity, LogStr)
123123
unLogger (LoggerEnv action st) = LogAction $ \(lvl, msg) -> do
@@ -172,6 +172,7 @@ addNamespace ns LoggerEnv{..} = LoggerEnv{context=context Seq.|> Segment ns, ..}
172172
-- detail and may change in the future.
173173
--
174174
-- 'LogStr' can be created is several ways:
175+
--
175176
-- * From the string literal using 'Data.String.IsString' interface
176177
-- * From the string like data that can be converted to text, using 'ls' function
177178
-- * From the type that has a 'Show' instance using 'showLS'

0 commit comments

Comments
 (0)