Skip to content

paulpatault/ocamlog

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OcamLog

Logger pour Ocaml.

Usage

Simple

Fichier exemple bin/main.ml:

open Lib

let () = Ocamlog.print Trace "Message 1"

let () = Ocamlog.print Info "Message 2"

let () = Ocamlog.print Warning "Message 3"

let () = Ocamlog.print Error "Message 4"

Preview screen 1

Décorations

Fichier exemple bin/main.ml:

open Lib
let () = Ocamlog.enableDecorations ()

let () = Ocamlog.print Trace "Message 1"
let () = Ocamlog.print Info "Message 2"
let () = Ocamlog.print Warning "Message 3"
let () = Ocamlog.print Error "Message 4"

let () = Ocamlog.disableDecorations ()

Preview screen 2

Inspiration

Merci grand maître Émilien pour cette super idée : CppLogger2

About

Lightweight logger for OCaml

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages