Skip to content

Commit bacccaa

Browse files
committed
fix(logs): fix archive logging config
1 parent 8ceac6d commit bacccaa

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,20 @@ SharpFM has the option to persist clips between sessions by using the File menu
3939

4040
## Features
4141

42-
- [x] Copy FileMaker Scripts, Tables, or Layouts From FileMaker Pro to their XML representation.
42+
- [x] Copy FileMaker Scripts, Tables, or Layouts From FileMaker Pro to their XML representation and back into FileMaker.
43+
- [x] Store FileMaker Scripts, Tables, and Layouts to xml files that can be shared via git, email or other text based tools.
4344
- [x] Edit raw FileMaker XML code (scripts, layouts, tables) with ability to paste changes back into FileMaker.
44-
- [x] Use AvaloniaEdit for XML editing with syntax highlighting.
45-
- [x] Persist FileMaker clips between SharpFM runs.
45+
- [x] Use AvaloniaEdit for XML editing with XML syntax highlighting.
4646
- [ ] Better UI tools to mutate the Raw XML.
4747

48+
## Troubleshooting
49+
50+
Logs are stored in `${specialfolder:folder=CommonApplicationData}\SharpFM` and are automatically rotated after thirty days.
51+
4852
## Similar Mac OS / Apple Based Developer Utilities
4953

50-
- Apple Script utility: https://github.com/DanShockley/FmClipTools
51-
- FileMaker based Generator: https://github.com/proofgeist/generator
54+
- Apple Script utility: <https://github.com/DanShockley/FmClipTools>
55+
- FileMaker based Generator: <https://github.com/proofgeist/generator>
5256

5357
## App Icon
5458

nlog.config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="NLog NLog.xsd"
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
autoReload="true"
7-
internalLogFile="c:\temp\SharpFM-internal.log"
8-
internalLogLevel="Info">
7+
internalLogFile="${commonApplicationDataDir}\SharpFM\SharpFM-nlog-internal.log"
8+
internalLogLevel="Error">
99

1010
<!-- the targets to write to -->
1111
<targets>
@@ -23,11 +23,11 @@
2323

2424
<!-- write logs to file in app data folder -->
2525
<target xsi:type="File" name="logfile"
26-
fileName="${specialfolder:folder=ApplicationData}\SharpFM\Application.log"
27-
archiveFileName="${specialfolder:folder=ApplicationData}\SharpFM\Application-${date:format=yyyy-MM-dd}#{##}.log"
26+
fileName="${specialfolder:folder=CommonApplicationData}\SharpFM\Application.log"
27+
archiveFileName="${specialfolder:folder=CommonApplicationData}\SharpFM\Application-{#}.log"
28+
archiveNumbering="Date"
2829
archiveEvery="Day"
29-
concurrentWrites="true"
30-
archiveNumbering="Rolling"
30+
archiveDateFormat="yyyy-MM-dd"
3131
maxArchiveFiles="30"
3232
layout="${longdate}|${uppercase:${level:padding=5}}|${mdlc:item=ScopeName}|${ndlctiming:currentScope=true}|${logger}|${message} ${exception:format=tostring:innerFormat=tostring:maxInnerExceptionLevel=2}" />
3333
</targets>

0 commit comments

Comments
 (0)