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

Most targets ignore -ExceptionInfo #93

Open
snow-jlove opened this issue May 24, 2020 · 1 comment
Open

Most targets ignore -ExceptionInfo #93

snow-jlove opened this issue May 24, 2020 · 1 comment

Comments

@snow-jlove
Copy link

The WinEventLog and Console targets include logic to print -ExceptionInfo from Write-Log. For example: https://github.com/EsOsO/Logging/blob/4.2.13/Logging/targets/Console.ps1#L38-L40.

However, no other targets have similar logic: https://github.com/search?q=execinfo+repo%3AEsOsO%2FLogging+path%3A%2FLogging%2Ftargets

Can similar logic be added to all targets?

@EsOsO
Copy link
Collaborator

EsOsO commented Jun 1, 2020

You're right. Is due to the target to "present" the log line (think it about MVC). If you have anything working feel free to PR a patch.

EsOsO pushed a commit that referenced this issue Feb 11, 2021
EsOsO pushed a commit that referenced this issue Feb 11, 2021
EsOsO pushed a commit that referenced this issue Feb 11, 2021
works with seq version 2021.1
SilentBob999 added a commit to SilentBob999/Logging that referenced this issue May 12, 2022
commit 05549cd
Author: EsOsO <[email protected]>
Date:   Wed Mar 23 14:19:36 2022 +0000

    Updated docs [skip ci]

commit 03d2f0c
Author: awesomecogs <[email protected]>
Date:   Wed Mar 23 08:57:47 2022 -0500

    Update CONTRIBUTING.md (RootITUp#122)

    Small grammar correction.

    Co-authored-by: Massimo Bonvicini <[email protected]>

commit a3cf4d8
Author: awesomecogs <[email protected]>
Date:   Wed Mar 23 08:57:04 2022 -0500

    Update index.md (RootITUp#121)

    Minor spelling, grammar, and formatting changes.

commit 7f93b73
Author: EsOsO <[email protected]>
Date:   Wed Oct 6 08:59:31 2021 +0000

    Updated docs [skip ci]

commit 5cbe86b
Author: gahujipo <[email protected]>
Date:   Wed Oct 6 10:56:07 2021 +0200

    SEQ: fix event type and implement properties (RootITUp#119)

    * SEQ: fix event level

    * SEQ: implement Properties

commit cfd09d6
Author: EsOsO <[email protected]>
Date:   Mon Mar 15 10:31:12 2021 +0000

    Updated docs [skip ci]

commit e30b975
Merge: 18e35cf d41df85
Author: Massimo Bonvicini <[email protected]>
Date:   Mon Mar 15 10:29:14 2021 +0000

    Merge pull request RootITUp#116 from tosoikea/rotation

    Added rotation to file target

commit d41df85
Author: Soennecken, Torben <[email protected]>
Date:   Mon Mar 8 10:03:11 2021 +0100

    [~] Using internal Sort-Object for sorting
    [-] Remove debug prints

commit e196559
Merge: b92d24d 18e35cf
Author: Soennecken, Torben <[email protected]>
Date:   Mon Mar 8 09:46:43 2021 +0100

    Merge remote-tracking branch 'upstream/master' into rotation

commit 18e35cf
Author: EsOsO <[email protected]>
Date:   Thu Feb 18 08:43:16 2021 +0000

    Updated docs [skip ci]

commit 2eb6136
Merge: fe4b47c 7aa1b7c
Author: Massimo Bonvicini <[email protected]>
Date:   Thu Feb 18 09:41:33 2021 +0100

    Merge pull request RootITUp#115 from tosoikea/master

    Added initialization to file target

commit b92d24d
Author: Soennecken, Torben <[email protected]>
Date:   Mon Feb 15 16:34:17 2021 +0100

    [~] Updated Usage.md to include rotation of files

commit 22e3fb2
Author: Soennecken, Torben <[email protected]>
Date:   Mon Feb 15 16:21:12 2021 +0100

    [+] Added rotation to file target

commit 7aa1b7c
Author: Soennecken, Torben <[email protected]>
Date:   Mon Feb 15 13:36:25 2021 +0100

    [+] Added target initialization for File. It tries to initially create the directory for the log target.
    This should be useful for e.g. nested log directories C:\log\module\monday\...

commit fe4b47c
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 14:30:20 2021 +0000

    Updated docs [skip ci]

commit 2f27bb8
Merge: c8f23b3 b0e054b
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 15:27:51 2021 +0100

    Merge branch 'dev' into master

commit b0e054b
Merge: d000628 5328b08
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 15:07:54 2021 +0100

    Merge branch '93-target-exception' into dev

commit 5328b08
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 15:07:45 2021 +0100

    removed unused file

commit d000628
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 15:06:46 2021 +0100

    excluded debug file

commit 10aae4a
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 15:06:27 2021 +0100

    removed unused file

commit 93f333f
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 14:57:09 2021 +0100

    removed unused file

commit 68a2e8e
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 14:55:40 2021 +0100

    working toward structured logging RootITUp#98

commit 08c5ce3
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 14:54:15 2021 +0100

    seq prints excpetions RootITUp#93
    works with seq version 2021.1

commit d459044
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 13:54:03 2021 +0100

    email target prints exception RootITUp#93

commit 0fb08f6
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 13:46:27 2021 +0100

    console target now prints exceptions RootITUp#93

commit 9282b90
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 13:40:21 2021 +0100

    file target prints exceptions

commit c8f23b3
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 09:41:27 2021 +0000

    Updated docs [skip ci]

commit 5446cb2
Merge: 914c22f 6f2f1de
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 10:36:23 2021 +0100

    Merge branch '112-read-only-log-in-target' into dev

commit 914c22f
Merge: 74fadef 47e48f1
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 10:36:15 2021 +0100

    Merge branch 'master' into dev

    # Conflicts:
    #	docs/CHANGELOG.md

commit 6f2f1de
Author: EsOsO <[email protected]>
Date:   Thu Feb 11 10:33:38 2021 +0100

    Targets now work on a copy of log object

commit 47e48f1
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 13:13:33 2020 +0000

    Updated docs [skip ci]

commit d771d10
Author: Massimo Bonvicini <[email protected]>
Date:   Thu Oct 22 13:10:12 2020 +0000

    Dev (RootITUp#109)

    * Updated Team target  (RootITUp#108)

    * Updated docs [skip ci]

    * refactor Teams target
    + support additional body types for adaptive card

    * syntax cleanup to better follow PnP

    Co-authored-by: EsOsO <[email protected]>
    Co-authored-by: Jenkins, Michael <[email protected]>

    * ignore function name clashing

    * unified timestamp format

    * keeping raw timestamp
    the target is in charge of formatting it using his format

    * removed blank lines

    * compiled release +semver:minor

    Co-authored-by: Michael Jenkins <[email protected]>
    Co-authored-by: Jenkins, Michael <[email protected]>

commit 74fadef
Merge: 5adf465 9170045
Author: Massimo Bonvicini <[email protected]>
Date:   Thu Oct 22 13:09:26 2020 +0000

    Merge branch 'master' into dev

commit 5adf465
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 14:56:55 2020 +0200

    compiled release +semver:minor

commit dea2bfe
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 14:51:21 2020 +0200

    removed blank lines

commit 1eed271
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 14:49:56 2020 +0200

    keeping raw timestamp
    the target is in charge of formatting it using his format

commit 65ba713
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 14:48:45 2020 +0200

    unified timestamp format

commit 90b1c6e
Author: EsOsO <[email protected]>
Date:   Thu Oct 22 14:43:15 2020 +0200

    ignore function name clashing

commit 04ad875
Author: Michael Jenkins <[email protected]>
Date:   Tue Sep 29 09:52:55 2020 -0400

    Updated Team target  (RootITUp#108)

    * Updated docs [skip ci]

    * refactor Teams target
    + support additional body types for adaptive card

    * syntax cleanup to better follow PnP

    Co-authored-by: EsOsO <[email protected]>
    Co-authored-by: Jenkins, Michael <[email protected]>

commit 9170045
Author: EsOsO <[email protected]>
Date:   Wed Jun 17 15:06:30 2020 +0000

    Updated docs [skip ci]

commit 3a0358f
Merge: aa99080 6bfbc47
Author: EsOsO <[email protected]>
Date:   Wed Jun 17 17:01:12 2020 +0200

    Merge branch 'dev'

commit 6bfbc47
Author: EsOsO <[email protected]>
Date:   Wed Jun 17 17:00:36 2020 +0200

    updated RELEASE.md

commit 736c354
Author: Tadas Medišauskas <[email protected]>
Date:   Tue Jun 16 21:39:20 2020 +0100

    Use case-insensitive dictionary (RootITUp#107)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants