VOL-1195 Broadcom logger for format consistency  and log rotation

Change-Id: I18d65e382682fcbbcad16676142effae6acbc795
diff --git a/mkdebian/debian/asfvolt16.postinst b/mkdebian/debian/asfvolt16.postinst
index b12bfb2..e7d5a53 100644
--- a/mkdebian/debian/asfvolt16.postinst
+++ b/mkdebian/debian/asfvolt16.postinst
@@ -7,6 +7,7 @@
 rm -f /run/bcm68620
 cp /tmp/init.d/bal_core_dist /etc/init.d
 cp /tmp/init.d/openolt /etc/init.d
+cp /tmp/logrotate.d/openolt /etc/logrotate.d
 chmod +x /etc/init.d/bal_core_dist
 chmod +x /etc/init.d/openolt
 update-rc.d bal_core_dist defaults
diff --git a/mkdebian/debian/logrotate.d/openolt b/mkdebian/debian/logrotate.d/openolt
new file mode 100644
index 0000000..c224dbd
--- /dev/null
+++ b/mkdebian/debian/logrotate.d/openolt
@@ -0,0 +1,10 @@
+/var/log/bal_core_dist.log
+/var/log/openolt.log
+{
+  rotate 7
+  daily
+  compress
+  missingok
+  delaycompress
+  copytruncate
+}
diff --git a/mkdebian/debian/rules b/mkdebian/debian/rules
index 33d257a..61e1bb7 100755
--- a/mkdebian/debian/rules
+++ b/mkdebian/debian/rules
@@ -31,6 +31,7 @@
 	cp -a $(CURDIR)/debian/libgrpc.so.6 $(DEB_DH_INSTALL_SOURCEDIR)/tmp
 	cp -a $(CURDIR)/debian/openolt $(DEB_DH_INSTALL_SOURCEDIR)/tmp
 	cp -a $(CURDIR)/debian/init.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp
+	cp -a $(CURDIR)/debian/logrotate.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp
 
 #override_dh_shlibdeps:
 #	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -l$(ONLP_LIB_PATH):$(OFDPA_LIB_PATH)