Skip to content
Snippets Groups Projects
Commit 82cd734e authored by Øystein Kristoffer Tveit's avatar Øystein Kristoffer Tveit :beginner:
Browse files

Move logger to separate file

parent 80f479ec
Branches
No related tags found
No related merge requests found
namespace Bot
module Logging =
open System
let log message =
printfn "[%A] [Info] %s" DateTime.Now message
\ No newline at end of file
...@@ -2,13 +2,10 @@ namespace Bot ...@@ -2,13 +2,10 @@ namespace Bot
module WebsiteCheckLoop = module WebsiteCheckLoop =
open System open Logging
open DSharpPlus open DSharpPlus
open Channels open Channels
let private log message =
printfn "[%A] [Info] %s" DateTime.Now message
let private sendToChannelWith (client:DiscordClient) message id = let private sendToChannelWith (client:DiscordClient) message id =
log <| sprintf "Sending message to channel: %A" id log <| sprintf "Sending message to channel: %A" id
id id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment