Appunti x nuovo logger (NON ANCORA OK)

This commit is contained in:
Samuele E. Locatelli
2018-04-18 18:54:35 +02:00
parent 6f29fd412e
commit 6b20b8fcd2
7 changed files with 62 additions and 14 deletions
+52
View File
@@ -0,0 +1,52 @@
;Configurazione IOB-WIN
[IOB]
CNCTYPE=DEMO
[MACHINE]
VENDOR=STEAMWARE
MODEL=DEMO
[CNC]
; TEST TORNOS!
IP=127.0.0.1
PORT=8193
[SERVER]
MPIP=http://10.74.82.219
MPURL=/MP/IO
CMDBASE=/IOB/input/
CMDFLOG=/IOB/flog/
CMDALIVE=/IOB
CMDENABLED=/IOB/enabled/
CMDADV1=?valore=
CMDREBO=/sendReboot.aspx?idxMacchina=
[MEMORY]
BITRED=Y8.4
BITYELLOW=Y8.5
BITGREEN=Y8.6
[BLINK]
;MAX_COUNTER_BLINK = 30
MAX_COUNTER_BLINK = 15
;bit0 = 0
;bit1 = 0
;bit2 = 1
;bit3 = 1
;bit4 = 1
;bit5 = 0
;bit6 = 0
;bit7 = 0
BLINK_FILT=0
;BLINK_FILT=28
[OPTPAR]
;PZCOUNT_MODE=STD|BIT
PZCOUNT_MODE=BIT
PZ_CAD_MADDR=1602
PZ_REQ_MADDR=1603
PZ_DONE_MADDR=1604
PZ_GTOT_MADDR=1605
[BRANCH]
NAME=develop
+1 -1
View File
@@ -11,6 +11,6 @@ CMDREBO=/IOB/sendRebootGateway?GWIP=
CMDIOB2CALL=/IOB/getIob2call?GWIP=
[IOB]
STARTLIST=3000
STARTLIST=3000,2999
MAXCNC=4
;STARTLIST=3001,3002,3003,3004,3005
+4
View File
@@ -158,12 +158,16 @@
<DependentUpon>App.config</DependentUpon>
<IsTransformFile>True</IsTransformFile>
</None>
<None Include="DATA\CONF\2999.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3000.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3006.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="DATA\CONF\3007.ini" />
<None Include="DATA\CONF\3010.ini">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
+1 -10
View File
@@ -13,10 +13,6 @@ namespace IOB_WIN
{
public class IobFanuc : IobGeneric
{
/// <summary>
/// wrapper di log con NEW = istanze separate...
/// </summary>
public new Logger lg;
/// <summary>
/// Contapezzi attuale
/// </summary>
@@ -112,12 +108,7 @@ namespace IOB_WIN
{
// i dati RAW principali sono 6 byte...
RawInput = new byte[6];
// rendo log UNICO
lg = LogManager.GetCurrentClassLogger();
// aggiungo nel logger IDX Macchina
LogManager.Configuration.Variables["codIOB"] = IOBConf.codIOB;
// gestione invio ritardato contapezzi
pzCountDelay = utils.CRI("pzCountDelay");
lastPzCountSend = DateTime.Now;
+1 -1
View File
@@ -45,7 +45,7 @@ namespace IOB_WIN
/// <summary>
/// wrapper di log
/// </summary>
public Logger lg;
protected static Logger lg;
/// <summary>
/// ULtimo valore inviato (in caso di disconnessione lo reinvia x garantire watchdog...)
/// </summary>
+2 -1
View File
@@ -27,11 +27,12 @@
layout="${longdate} ${uppercase:${level}} ${message}" />
layout="${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message}"
layout="${longdate} ${uppercase:${level}} ${callsite} ${message}"
layout="${longdate} ${var:codIOB:default=0000}|${uppercase:${level}}|${callsite:shortName=true}|${threadid}|${message}|${exception:format=tostring}"
-->
<target xsi:type="File"
name="f"
fileName="${basedir}/logs/${shortdate}.log"
layout="${longdate} ${var:codIOB:default=0000} ${uppercase:${level}} ${callsite:shortName=true} ${message}"
layout="${longdate}|${uppercase:${level}}|${var:codIOB:default=0000}|${callsite:shortName=true}|${threadid}|${message}|${exception:format=tostring}"
archiveFileName="${basedir}/logs/${shortdate}.{###}.zip"
archiveNumbering="Sequence"
archiveEvery="Day"
Vendored
+1 -1
View File
@@ -14,7 +14,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=241']) {
withEnv(['NEXT_BUILD_NUMBER=242']) {
// env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO-IOB-WIN'