mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-31 03:16:07 +00:00
19 lines
447 B
Haskell
19 lines
447 B
Haskell
module Main where
|
|
|
|
import Control.Logger.Simple
|
|
import Simplex.Messaging.Notifications.Server.Main
|
|
|
|
cfgPath :: FilePath
|
|
cfgPath = "/etc/opt/simplex-notifications"
|
|
|
|
logPath :: FilePath
|
|
logPath = "/var/opt/simplex-notifications"
|
|
|
|
logCfg :: LogConfig
|
|
logCfg = LogConfig {lc_file = Nothing, lc_stderr = True}
|
|
|
|
main :: IO ()
|
|
main = do
|
|
setLogLevel LogDebug -- change to LogError in production
|
|
withGlobalLogging logCfg $ ntfServerCLI cfgPath logPath
|