Skip to content

Instantly share code, notes, and snippets.

Carl in 't Veld cveld

Block or report user

Report or block cveld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cveld / readiislog.scala
Created Jan 3, 2016 — forked from anonymous/readiislog.scala
First try to parse IIS (w3c extended format log files with Scala
View readiislog.scala
//val source ="G:\\test\\2015-12 Logging Eventhub\\W3SVC916189047\\u_ex151130.log")
val source ="testlog.log")
val lines = source.getLines()
//getLogItems(lines).take(5).foreach { line => println(line) }
getLogItems(lines).foreach { line => println(line) }
class LogItemsIterator(lines : Iterator[String]) extends Iterator[collection.mutable.Map[String, String]] {
var _nextLine = None : Option[collection.mutable.Map[String, String]];
You can’t perform that action at this time.