Skip to content

Commit

Permalink
fix(logs): fix archive logging config (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzzerd authored Mar 8, 2024
2 parents 8ceac6d + bacccaa commit 3a1b868
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@ SharpFM has the option to persist clips between sessions by using the File menu

## Features

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

## Troubleshooting

Logs are stored in `${specialfolder:folder=CommonApplicationData}\SharpFM` and are automatically rotated after thirty days.

## Similar Mac OS / Apple Based Developer Utilities

- Apple Script utility: https://github.com/DanShockley/FmClipTools
- FileMaker based Generator: https://github.com/proofgeist/generator
- Apple Script utility: <https://github.com/DanShockley/FmClipTools>
- FileMaker based Generator: <https://github.com/proofgeist/generator>

## App Icon

Expand Down
12 changes: 6 additions & 6 deletions nlog.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="NLog NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogFile="c:\temp\SharpFM-internal.log"
internalLogLevel="Info">
internalLogFile="${commonApplicationDataDir}\SharpFM\SharpFM-nlog-internal.log"
internalLogLevel="Error">

<!-- the targets to write to -->
<targets>
Expand All @@ -23,11 +23,11 @@

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

0 comments on commit 3a1b868

Please sign in to comment.