Advanced Logging with log4net: principle, practice and applications (Gael Colas)

Опубликовано: 15 Май 2016
на канале: PowerShell Conference EU
2,023
7

Although logging PowerShell activity for security can be implemented by 'Over-the-shoulder transcription' in v5, you may want to add some advanced logging to your scripts, while minimizing log management and keeping it consistent across your environments. Using the log4net library as a base and leveraging it with PowerShell, the log4ps module enables you to implement structured logging for your scripts, driven by XML files, picking up changes on the fly without the need to restart your script. With no more code than you already have, you can send logs to files, with a cap on their size, roll them automatically, use buffers, time stamps, context and so on. But if you really want to push further, by simply editing the XML definition you can log to EventLog, SMTP, Databases, SysLog, TCP Sink, UDP endpoints, ELMAH, Logstash for elastic search, Loggly, AWS or Message Queues directly from your script!


Смотрите видео Advanced Logging with log4net: principle, practice and applications (Gael Colas) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал PowerShell Conference EU 15 Май 2016. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,023 раз и оно понравилось 7 посетителям.