mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 18:35:59 +00:00
19 lines
369 B
Haskell
19 lines
369 B
Haskell
module Main where
|
|
|
|
import Control.Logger.Simple
|
|
import Simplex.Messaging.Server.Main
|
|
|
|
cfgPath :: FilePath
|
|
cfgPath = "/etc/opt/simplex"
|
|
|
|
logPath :: FilePath
|
|
logPath = "/var/opt/simplex"
|
|
|
|
logCfg :: LogConfig
|
|
logCfg = LogConfig {lc_file = Nothing, lc_stderr = True}
|
|
|
|
main :: IO ()
|
|
main = do
|
|
setLogLevel LogDebug
|
|
withGlobalLogging logCfg $ smpServerCLI cfgPath logPath
|