Last active
December 13, 2016 13:26
-
-
Save claudiobernasconi/4acbe62a7bd290e41efd1cabc1d09d4c to your computer and use it in GitHub Desktop.
App.config consisting of Akka.Net HOCON configuration and log4net logger configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | |
</configSections> | |
<log4net> | |
<root> | |
<level value="DEBUG" /> | |
<appender-ref ref="Prototype"/> | |
</root> | |
<appender name="Prototype" type="log4net.Appender.RollingFileAppender" > | |
<file value="D:\\temp\\Prototype.log.txt" /> | |
<appendToFile value="true" /> | |
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | |
<rollingStyle value="Date" /> | |
<maximumFileSize value="2048KB" /> | |
<datePattern value="yyyyMMdd" /> | |
<layout type="log4net.Layout.PatternLayout"> | |
<conversionPattern value="%date [%thread] %level %logger - %message%newline" /> | |
</layout> | |
</appender> | |
</log4net> | |
<akka> | |
<hocon> | |
<![CDATA[ | |
akka { | |
loglevel = INFO | |
loggers = ["Akka.Logger.log4net.Log4NetLogger, Akka.Logger.log4net"] | |
actor { | |
provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster" | |
debug { | |
receive = on | |
autoreceive = on | |
lifecycle = on | |
event-stream = on | |
unhandled = on | |
} | |
deployment { | |
/JobCoordinator { | |
router = round-robin-pool | |
nr-of-instances = 20 | |
cluster { | |
enabled = on | |
allow-local-routees = on | |
use-role = prototype | |
max-nr-of-instances-per-node = 5 | |
} | |
} | |
} | |
} | |
remote { | |
helios.tcp { | |
hostname = "127.0.0.1" | |
port = 0 | |
} | |
} | |
cluster { | |
seed-nodes = ["akka.tcp://[email protected]:4053"] | |
roles = [prototype] | |
} | |
} | |
]]> | |
</hocon> | |
</akka> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |
</startup> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" /> | |
</dependentAssembly> | |
</assemblyBinding> | |
</runtime> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment