<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>[ 456 ]</title>
		<link>https://c456.ru/</link>
		<description>Форум</description>
		<lastBuildDate>Wed, 23 Feb 2011 13:45:43 GMT</lastBuildDate>
		<generator>uCoz Web-Service</generator>
		<atom:link href="https://c456.ru/forum/rss" rel="self" type="application/rss+xml" />
		
		<item>
			<title>Установка logs2html.mod</title>
			<link>https://c456.ru/forum/36-327-1</link>
			<pubDate>Wed, 23 Feb 2011 13:45:43 GMT</pubDate>
			<description>Форум: &lt;a href=&quot;https://c456.ru/forum/36&quot;&gt;Модули для eggdrop&lt;/a&gt;&lt;br /&gt;Описание темы: логи бота в html формат&lt;br /&gt;Автор темы: [StingeR]&lt;br /&gt;Автор последнего сообщения: [StingeR]&lt;br /&gt;Количество ответов: 2</description>
			<content:encoded>&lt;div align=&quot;center&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&lt;span style=&quot;color:yellow&quot;&gt;Модуль logs2html преобразует логи бота в html формат и представляет их в виде календарной сетки, так, что можно просмотреть логи за любой день.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;p&gt; Для установки модуля нам потребуется перекомпиляция бота. &lt;br /&gt; Заходим под рутом. &lt;br /&gt; Если у вас не установлены следующие утилиты, это нужно зделать. &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;apt-get install make cpp gcc wget &lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Скачаем исходники бота eggdrop1.6.20: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;wget geteggdrop.com&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Далее разархивируем их и переходим в папку src/mod: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;tar -xzvf eggdrop1.6.20.tar.gz &lt;br /&gt; cd eggdrop1.6.20/src/mod&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;Теперь скачиваем сам модуль:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt; wget http&amp;#58;//sourceforge.net/projects/logs2html/files/logs2html.mod/2.4.3/logs2html.mod-2.4.3.zip/download &lt;br /&gt; &lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;br /&gt; Либо, можно скачать модуль самому из нашего &lt;a class=&quot;link&quot; href=&quot;http://c456.ru/load/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Каталога файлов&lt;/a&gt; , либо с &lt;a class=&quot;link&quot; href=&quot;http://u.to/vddz&quot; title=&quot;http://sourceforge.net/projects/logs2html/files/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Офицального сайта&lt;/a&gt; и разархивировать на сервере в /src/mod &lt;p&gt; Разархивируем модуль: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;unzip -x logs2html.mod-2.4.3.zip&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Возвращаемся в корень бота и перекомпилируем его вместе с модулем: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;cd ../../ &lt;br /&gt; ./configre &lt;br /&gt; make config &lt;br /&gt; make &lt;br /&gt; make install&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Теперь копируем logs2html.conf в корень бота: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;cp src/mod/logs2html.mod/logs2html.conf ~/eggdrop&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; В eggdrop.conf перд загрузкой скриптов добавляем строку загрузки модуля: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;source logs2html.conf&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Теперь нам надо настроить модуль. Открывайте любым текстовым редактором его конфигурационный файл logs2html.conf и в самом низу добавляйте свои каналы. &lt;br /&gt; Строка выглядит так: &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;addlogs2htmlchan channel output-path main-page-name main-page-title logs-page-prefix logs-page-title&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;br /&gt; где channel - ваш канал, &lt;br /&gt; output-path - директория где будут сохраняться сконвертированные файлы, &lt;br /&gt; main-page-name - название главной страницы. Т.е. если оставить настройку без изменний, то страница будет называться main-page-name.html &lt;br /&gt; main-page-title - тайтл главной страницы. &lt;br /&gt; logs-page-prefix - префикс страниц с логами. сли оставить настройку без изменений, то страница с логами за один день будет называться logs-page-prefixYYmmdd_pgN.html &lt;br /&gt; logs-page-title - тайтл страниц с логами за день. &lt;p&gt; Пример добавления канала #456: &lt;br /&gt; addlogs2htmlchan #456 &quot;/home/eggdrop/logs&quot; index &quot;Логи #456@IrcNet.ru&quot; 456 &quot;Лог #456@IrcNet.ru&quot; &lt;p&gt; Также не забываем включить сохрание логов в самом боте, для этого смотрите раздел ##### LOG FILES ##### в конфигурационном файле бота. &lt;p&gt; Хочу заметить, в разделе конфа о логах важна строка &lt;br /&gt; &lt;!--uzcode--&gt;&lt;div class=&quot;bbCodeBlock&quot;&gt;&lt;div class=&quot;bbCodeName&quot; style=&quot;padding-left:5px;font-weight:bold;font-size:7pt&quot;&gt;Code&lt;/div&gt;&lt;div class=&quot;codeMessage&quot; style=&quot;border:1px inset;max-height:200px;overflow:auto;height:expression(this.scrollHeight&lt;5?this.style.height:scrollHeight&gt;200?&apos;200px&apos;:&apos;&apos;+(this.scrollHeight+5)+&apos;px&apos;);&quot;&gt;&lt;!--uzc--&gt;set keep-all-logs 1&lt;!--/uzc--&gt;&lt;/div&gt;&lt;/div&gt;&lt;!--/uzcode--&gt; &lt;p&gt; Модуль имеет несколько dcc команд: &lt;br /&gt; .convertalllogs	 - переконвертация всех логов. &lt;br /&gt; .convertlogs [year [month [day]]]	- переконвертация логов за определенный период. &lt;br /&gt; .makemainpage	 - перестройка главной страницы &lt;br /&gt; .makeindexpage	 - тоже, что и &quot;.makemainpage&quot; &lt;p&gt; Пример работы модуля: &lt;a class=&quot;link&quot; target=&quot;_blank&quot; href=&quot;http://u.to/y9dz&quot; title=&quot;http://chan456.co.cc/logs/logs.html&quot; rel=&quot;nofollow&quot;&gt;http://chan456.co.cc/logs/logs.html&lt;/a&gt;</content:encoded>
			<category>Модули для eggdrop</category>
			<dc:creator>[StingeR]</dc:creator>
			<guid>https://c456.ru/forum/36-327-1</guid>
		</item>
	</channel>
</rss>