Skip to content

Commit

Permalink
add Transport subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval committed Oct 5, 2022
1 parent 07bf2dd commit 51092d3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions herp-logger.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ library
Herp.Logger
Herp.Logger.LogLevel
Herp.Logger.Payload
Herp.Logger.SentryTransport
Herp.Logger.StdoutTransport
Herp.Logger.Transport
Herp.Logger.Transport.Sentry
Herp.Logger.Transport.Stdout
Herp.Logger.Transport.Types
Herp.Logger.ANSI.Coloring
hs-source-dirs:
src
Expand Down
4 changes: 2 additions & 2 deletions src/Herp/Logger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import System.PosixCompat.Time (epochTime)

import Herp.Logger.Payload as P
import Herp.Logger.LogLevel as X
import Herp.Logger.Transport as X
import Herp.Logger.StdoutTransport
import Herp.Logger.Transport.Types as X
import Herp.Logger.Transport.Stdout as X

import "text" Data.Text as Text
import "text" Data.Text.Encoding as Text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE OverloadedStrings #-}

module Herp.Logger.SentryTransport
module Herp.Logger.Transport.Sentry
( sentry
) where

Expand All @@ -18,7 +18,7 @@ import "raven-haskell" System.Log.Raven.Types
)
import "unordered-containers" Data.HashMap.Strict qualified as HashMap
import Herp.Logger.LogLevel qualified as Level (LogLevel(..))
import Herp.Logger.Transport (Transport(..), TransportInput(..))
import Herp.Logger.Transport.Types (Transport(..), TransportInput(..))


#if MIN_VERSION_aeson(2,0,0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{-# LANGUAGE CPP #-}

module Herp.Logger.StdoutTransport (
module Herp.Logger.Transport.Stdout (
stdoutTransport,
stdoutANSITransport,
) where

import Herp.Logger.LogLevel
import Herp.Logger.Transport
import Herp.Logger.Transport.Types
import "fast-logger" System.Log.FastLogger (LoggerSet, ToLogStr (toLogStr), flushLogStr, pushLogStrLn)

import "aeson" Data.Aeson ((.=))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE PackageImports #-}

module Herp.Logger.Transport
module Herp.Logger.Transport.Types
( Transport(..)
, TransportInput(..)
) where
Expand Down

0 comments on commit 51092d3

Please sign in to comment.