Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(logs): fix archive logging config #69

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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