When using the log4net (1.2.10) AdoNetAppender I needed to encrypt the connection string as it contained the DB users name and password. I couldn't find an easy way to do this so I ended up reading the connection string from the parent apps web.config. See: Stack Overflow: Encrypt the connectionString used by the log4ent AdoNetAppender