Skip to content

A library for connecting to Half-Life Dedicated Servers (a.k.a "HLDS") and using GenStage to produce structured log entries sent from the connected HLDS server.

License

Notifications You must be signed in to change notification settings

JonnyPower/hlds_logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HLDSLogs

Build Status Hex.pm

A library for connecting to Half-Life Dedicated Servers (a.k.a "HLDS") and using GenStage to produce structured log entries sent from the connected HLDS server.

Installation

def deps do
  [
    {:hlds_logs, "~> 0.1.0"}
  ]
end

Quickstart

If you are running a HLDS server and want to consume log entries from the game server, you could connect and consume by calling HLDSLogs.produce_logs/3;

HLDSLogs.produce_logs(
  %HLDSRcon.ServerInfo{
    host: "127.0.0.1",
    port: 27015
  },
  %HLDSLogs.ListenInfo{
    host: "127.0.0.1"
  },
  consumer_pid
)

Your consumer would then begin receiving %HLDSLogs.LogEntry structs as events, for you to carry out processing as you wish.

Documentation

HexDocs at https://hexdocs.pm/hlds_logs.

About

A library for connecting to Half-Life Dedicated Servers (a.k.a "HLDS") and using GenStage to produce structured log entries sent from the connected HLDS server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages